aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJohn Keeping2016-01-19 19:33:08 +0000
committerJason A. Donenfeld2016-02-08 14:23:16 +0100
commit17c74eefa4390d42a244b12885dc63ac4a764e44 (patch)
treeb5f335bfd68ead178b5e5548b683be1874a01172 /ui-shared.c
parenteb80b4edadd07957f667f057c82875c30a822a1f (diff)
downloadcgit-17c74eefa4390d42a244b12885dc63ac4a764e44.tar.gz
cgit-17c74eefa4390d42a244b12885dc63ac4a764e44.tar.bz2
cgit-17c74eefa4390d42a244b12885dc63ac4a764e44.zip
ui-shared: remove cgit_print_date()
There are no longer any users of this function. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ui-shared.c b/ui-shared.c
index eaa45fb..d1f9249 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -607,26 +607,6 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
607 path[len - 1] = tail; 607 path[len - 1] = tail;
608} 608}
609 609
610static const char *fmt_date(time_t secs, const char *format, int local_time)
611{
612 static char buf[64];
613 struct tm *time;
614
615 if (!secs)
616 return "";
617 if (local_time)
618 time = localtime(&secs);
619 else
620 time = gmtime(&secs);
621 strftime(buf, sizeof(buf)-1, format, time);
622 return buf;
623}
624
625void cgit_print_date(time_t secs, const char *format, int local_time)
626{
627 html_txt(fmt_date(secs, format, local_time));
628}
629
630const struct date_mode *cgit_date_mode(const char *format) 610const struct date_mode *cgit_date_mode(const char *format)
631{ 611{
632 static struct date_mode mode; 612 static struct date_mode mode;