diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-20 08:44:16 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-10 16:45:42 +0100 |
commit | b2c7a4cf1dc6cc18a10c9cc3e70f95d445ac9a84 (patch) | |
tree | cbfd3a6d9bb6ea24a63f9723e9094d3892a4f4de /core | |
parent | 3cd36539721a8ccfaab5559b6b06240db19fb5ff (diff) | |
download | subsurface-b2c7a4cf1dc6cc18a10c9cc3e70f95d445ac9a84.tar.gz |
Unused code: weekday()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.h | 1 | ||||
-rw-r--r-- | core/subsurfacestartup.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/core/dive.h b/core/dive.h index ee859f5b8..0e41b854c 100644 --- a/core/dive.h +++ b/core/dive.h @@ -843,7 +843,6 @@ extern int total_weight(struct dive *); #define DIVE_ERROR_PARSE 1 #define DIVE_ERROR_PLAN 2 -const char *weekday(int wday); const char *monthname(int mon); #define UTF8_DEGREE "\xc2\xb0" diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c index db942f7ba..13189cc26 100644 --- a/core/subsurfacestartup.c +++ b/core/subsurfacestartup.c @@ -123,15 +123,6 @@ void sort_table(struct dive_table *table) qsort(table->dives, table->nr, sizeof(struct dive *), sortfn); } -const char *weekday(int wday) -{ - static const char wday_array[7][7] = { - /*++GETTEXT: these are three letter days - we allow up to six code bytes */ - QT_TRANSLATE_NOOP("gettextFromC", "Sun"), QT_TRANSLATE_NOOP("gettextFromC", "Mon"), QT_TRANSLATE_NOOP("gettextFromC", "Tue"), QT_TRANSLATE_NOOP("gettextFromC", "Wed"), QT_TRANSLATE_NOOP("gettextFromC", "Thu"), QT_TRANSLATE_NOOP("gettextFromC", "Fri"), QT_TRANSLATE_NOOP("gettextFromC", "Sat") - }; - return translate("gettextFromC", wday_array[wday]); -} - const char *monthname(int mon) { static const char month_array[12][7] = { |