summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-12-09 12:38:54 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-12-09 12:38:54 +0100
commit73341a5cf74d960348dfed62b3dd2d7a72f61495 (patch)
tree8b76ac38df7129f314c705e9adcc5c16c759787c
parentf545a593a8c31b750febe10ad56f2e73616bc678 (diff)
sfeed_gph: remove unused gphtext()
-rw-r--r--sfeed_gph.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sfeed_gph.c b/sfeed_gph.c
index 3c8a2ef..addb457 100644
--- a/sfeed_gph.c
+++ b/sfeed_gph.c
@@ -55,28 +55,6 @@ utf8pad(char *buf, size_t bufsiz, const char *s, size_t len, int pad)
return 0;
}
-/* Escape characters in text in geomyidae .gph format,
- newlines are ignored */
-void
-gphtext(FILE *fp, const char *s, size_t len)
-{
- size_t i;
-
- for (i = 0; *s && i < len; i++) {
- switch (s[i]) {
- case '\r': /* ignore CR */
- case '\n': /* ignore LF */
- break;
- case '\t':
- fputs(" ", fp);
- break;
- default:
- fputc(s[i], fp);
- break;
- }
- }
-}
-
/* Escape characters in links in geomyidae .gph format */
void
gphlink(FILE *fp, const char *s, size_t len)