]> granicus.if.org Git - cgit/commitdiff
html: remove html_status()
authorJohn Keeping <john@keeping.me.uk>
Fri, 14 Aug 2015 11:47:10 +0000 (12:47 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Aug 2015 13:46:51 +0000 (15:46 +0200)
This is now unused.

Signed-off-by: John Keeping <john@keeping.me.uk>
html.c
html.h

diff --git a/html.c b/html.c
index a47cff07154d5701a7c84774ac68feb33337ee39..959148ca612328a1a1e4c297212943ed30199f28 100644 (file)
--- a/html.c
+++ b/html.c
@@ -121,13 +121,6 @@ void html_vtxtf(const char *format, va_list ap)
        strbuf_release(&buf);
 }
 
-void html_status(int code, const char *msg, int more_headers)
-{
-       htmlf("Status: %d %s\n", code, msg);
-       if (!more_headers)
-               html("\n");
-}
-
 void html_txt(const char *txt)
 {
        const char *t = txt;
diff --git a/html.h b/html.h
index be3b3112c100dcbf79bf46151cd3fc747e80b48e..c5547631f850664b2ddfc01046c7fc3e50af687d 100644 (file)
--- a/html.h
+++ b/html.h
@@ -18,7 +18,6 @@ extern void html_vtxtf(const char *format, va_list ap);
 __attribute__((format (printf,1,2)))
 extern void html_attrf(const char *format,...);
 
-extern void html_status(int code, const char *msg, int more_headers);
 extern void html_txt(const char *txt);
 extern void html_ntxt(int len, const char *txt);
 extern void html_attr(const char *txt);