aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-17 15:24:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-17 15:24:25 +0000
commit6d6deaa592c9264a92dc804a3501a8579f2f7de4 (patch)
tree73a59f01b44266f83493b67969268c4291e3bf9b /out.c
parent4b1b59867675282ebfb362ea0ff4a50919623b95 (diff)
downloadmandoc-6d6deaa592c9264a92dc804a3501a8579f2f7de4.tar.gz
mandoc-6d6deaa592c9264a92dc804a3501a8579f2f7de4.tar.zst
mandoc-6d6deaa592c9264a92dc804a3501a8579f2f7de4.zip
Remove unused function.
Diffstat (limited to 'out.c')
-rw-r--r--out.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/out.c b/out.c
index 225d4639..eb679e64 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.40 2011/04/09 15:29:40 kristaps Exp $ */
+/* $Id: out.c,v 1.41 2011/07/17 15:24:25 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -132,48 +132,6 @@ a2roffsu(const char *src, struct roffsu *dst, enum roffscale def)
return(1);
}
-
-/*
- * Correctly writes the time in nroff form, which differs from standard
- * form in that a space isn't printed in lieu of the extra %e field for
- * single-digit dates.
- */
-void
-time2a(time_t t, char *dst, size_t sz)
-{
- struct tm tm;
- char buf[5];
- char *p;
- size_t nsz;
-
- assert(sz > 1);
- localtime_r(&t, &tm);
-
- p = dst;
- nsz = 0;
-
- dst[0] = '\0';
-
- if (0 == (nsz = strftime(p, sz, "%B ", &tm)))
- return;
-
- p += (int)nsz;
- sz -= nsz;
-
- if (0 == strftime(buf, sizeof(buf), "%e, ", &tm))
- return;
-
- nsz = strlcat(p, buf + (' ' == buf[0] ? 1 : 0), sz);
-
- if (nsz >= sz)
- return;
-
- p += (int)nsz;
- sz -= nsz;
-
- (void)strftime(p, sz, "%Y", &tm);
-}
-
/*
* Calculate the abstract widths and decimal positions of columns in a
* table. This routine allocates the columns structures then runs over