X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/163037e79c6cde1073d555dbeae2a095298e6101..9ec5cd7944a7099515b7d41107007d6332a2540e:/shared.c diff --git a/shared.c b/shared.c index cd60da5..f5875e4 100644 --- a/shared.c +++ b/shared.c @@ -12,8 +12,6 @@ struct cgit_repolist cgit_repolist; struct cgit_context ctx; int cgit_cmd; -const char *cgit_version = CGIT_VERSION; - int chk_zero(int result, char *msg) { if (result != 0) @@ -91,18 +89,6 @@ void *cgit_free_commitinfo(struct commitinfo *info) return NULL; } -int hextoint(char c) -{ - if (c >= 'a' && c <= 'f') - return 10 + c - 'a'; - else if (c >= 'A' && c <= 'F') - return 10 + c - 'A'; - else if (c >= '0' && c <= '9') - return c - '0'; - else - return -1; -} - char *trim_end(const char *str, char c) { int len;