ui-shared: remove cgit_print_date()

There are no longer any users of this function.

Signed-off-by: John Keeping <john@keeping.me.uk>
这个提交包含在:
John Keeping
2016-01-19 19:33:08 +00:00
提交者 Jason A. Donenfeld
父节点 eb80b4edad
当前提交 17c74eefa4
共有 2 个文件被更改,包括 0 次插入21 次删除

查看文件

@ -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;