http: remove unused function hex()
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
bc1bbe0c19
commit
620771c83e
8
http.c
8
http.c
|
@ -747,14 +747,6 @@ static inline int needs_quote(int ch)
|
||||||
return 1;
|
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)
|
static char *quote_ref_url(const char *base, const char *ref)
|
||||||
{
|
{
|
||||||
struct strbuf buf = STRBUF_INIT;
|
struct strbuf buf = STRBUF_INIT;
|
||||||
|
|
Loading…
Reference in New Issue