summaryrefslogtreecommitdiffstats
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
commit9174220521eae760b5e55c250b148167f97b8c6e (patch)
tree0a304e337b55e6d12c090cb2ac9b49b10a2d944b
parentb0faf44d9b2abdcb11a61ce7335667a2c134e0df (diff)
downloadmandoc-9174220521eae760b5e55c250b148167f97b8c6e.tar.gz
Remove unused function.
-rw-r--r--out.c42
-rw-r--r--out.h1
2 files changed, 0 insertions, 43 deletions
diff --git a/out.c b/out.c
index e57077fc..ebd85c7d 100644
--- a/out.c
+++ b/out.c
@@ -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
diff --git a/out.h b/out.h
index 3e70c4bf..fefe2b01 100644
--- a/out.h
+++ b/out.h
@@ -64,7 +64,6 @@ __BEGIN_DECLS
while (/* CONSTCOND */ 0)
int a2roffsu(const char *, struct roffsu *, enum roffscale);
-void time2a(time_t, char *, size_t);
void tblcalc(struct rofftbl *tbl, const struct tbl_span *);
__END_DECLS