mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:23:23 +00:00
Unused code: weekday()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
3cd3653972
commit
b2c7a4cf1d
2 changed files with 0 additions and 10 deletions
|
@ -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"
|
||||
|
|
|
@ -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] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue