commit 73341a5cf74d960348dfed62b3dd2d7a72f61495
parent f545a593a8c31b750febe10ad56f2e73616bc678
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 9 Dec 2017 12:38:54 +0100
sfeed_gph: remove unused gphtext()
Diffstat:
1 file changed, 0 insertions(+), 22 deletions(-)
diff --git 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)