aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-08 13:32:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-29 08:34:09 -0800
commit4c85357dccf489110efe0439dde597843c7a8771 (patch)
tree8f7dd2387b54b6202f61606aa01fc8227bde381e /core/subsurfacestartup.c
parentbbbd4c88180d43604c5e6bbe093461e93859d706 (diff)
downloadsubsurface-4c85357dccf489110efe0439dde597843c7a8771.tar.gz
cleanup: move monthname to time.c
Weirdly, this function was declared in dive.h and defined in subsurface-startup.c. Let's move declaration and definition to more appropriate places, viz. subsurface-time.h and time.c. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurfacestartup.c')
-rw-r--r--core/subsurfacestartup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index c2e4dda04..23e17c7a7 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -115,16 +115,6 @@ const struct units *get_units()
return &prefs.units;
}
-/* random helper functions, used here or elsewhere */
-const char *monthname(int mon)
-{
- static const char month_array[12][4] = {
- QT_TRANSLATE_NOOP("gettextFromC", "Jan"), QT_TRANSLATE_NOOP("gettextFromC", "Feb"), QT_TRANSLATE_NOOP("gettextFromC", "Mar"), QT_TRANSLATE_NOOP("gettextFromC", "Apr"), QT_TRANSLATE_NOOP("gettextFromC", "May"), QT_TRANSLATE_NOOP("gettextFromC", "Jun"),
- QT_TRANSLATE_NOOP("gettextFromC", "Jul"), QT_TRANSLATE_NOOP("gettextFromC", "Aug"), QT_TRANSLATE_NOOP("gettextFromC", "Sep"), QT_TRANSLATE_NOOP("gettextFromC", "Oct"), QT_TRANSLATE_NOOP("gettextFromC", "Nov"), QT_TRANSLATE_NOOP("gettextFromC", "Dec"),
- };
- return translate("gettextFromC", month_array[mon]);
-}
-
/*
* track whether we switched to importing dives
*/