Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 22:33:08 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 16:23:16 +0300
commit17c74eefa4390d42a244b12885dc63ac4a764e44 (patch)
treeb5f335bfd68ead178b5e5548b683be1874a01172
parenteb80b4edadd07957f667f057c82875c30a822a1f (diff)
ui-shared: remove cgit_print_date()
There are no longer any users of this function. Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r--ui-shared.c20
-rw-r--r--ui-shared.h1
2 files changed, 0 insertions, 21 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)
path[len - 1] = tail;
}
-static const char *fmt_date(time_t secs, const char *format, int local_time)
-{
- static char buf[64];
- struct tm *time;
-
- if (!secs)
- return "";
- if (local_time)
- time = localtime(&secs);
- else
- time = gmtime(&secs);
- strftime(buf, sizeof(buf)-1, format, time);
- return buf;
-}
-
-void cgit_print_date(time_t secs, const char *format, int local_time)
-{
- html_txt(fmt_date(secs, format, local_time));
-}
-
const struct date_mode *cgit_date_mode(const char *format)
{
static struct date_mode mode;
diff --git a/ui-shared.h b/ui-shared.h
index e42f13a..43789de 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -62,7 +62,6 @@ extern void cgit_print_error(const char *fmt, ...);
__attribute__((format (printf,1,0)))
extern void cgit_vprint_error(const char *fmt, va_list ap);
extern const struct date_mode *cgit_date_mode(const char *format);
-extern void cgit_print_date(time_t secs, const char *format, int local_time);
extern void cgit_print_age(time_t t, int tz, time_t max_relative);
extern void cgit_print_http_headers(void);
extern void cgit_redirect(const char *url, bool permanent);