]> gitweb.ps.run Git - ps-cgit/blobdiff - html.c
cgit.c: remove useless null check
[ps-cgit] / html.c
diff --git a/html.c b/html.c
index 155cde58d26093114e4cca4d78fb20f29fdcc93b..959148ca612328a1a1e4c297212943ed30199f28 100644 (file)
--- a/html.c
+++ b/html.c
@@ -8,12 +8,6 @@
 
 #include "cgit.h"
 #include "html.h"
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <errno.h>
 
 /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */
 static const char* url_escape_table[256] = {
@@ -127,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;