http: remove unused function hex()
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 15 Nov 2011 16:59:36 +0000 (22:29 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Nov 2011 00:08:48 +0000 (16:08 -0800)
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
diff --git a/http.c b/http.c
index 008ad72ae599b1b937e2956e2621d40c325ff632..e6c75976e8886321732ef2b0b686b08e04a0c200 100644 (file)
--- a/http.c
+++ b/http.c
@@ -747,14 +747,6 @@ static inline int needs_quote(int ch)
        return 1;
 }
 
-static inline int hex(int v)
-{
-       if (v < 10)
-               return '0' + v;
-       else
-               return 'A' + v - 10;
-}
-
 static char *quote_ref_url(const char *base, const char *ref)
 {
        struct strbuf buf = STRBUF_INIT;