From: Wilfried Göesgens Date: Sun, 10 Jan 2010 22:16:34 +0000 (+0000) Subject: * remove xtoi, its not used anymore. X-Git-Tag: v7.86~513 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4d914891a8f5651f8010ac4e94e523df19070a04 * remove xtoi, its not used anymore. --- diff --git a/webcit/cookie_conversion.c b/webcit/cookie_conversion.c index cdd51774f..25f85c73d 100644 --- a/webcit/cookie_conversion.c +++ b/webcit/cookie_conversion.c @@ -50,29 +50,6 @@ void stuff_to_cookie(int unset_cookies) } } -/* - * Convert unpacked hex string to an integer - */ -int xtoi(const char *in, size_t len) -{ - int val = 0; - char c = 0; - while (!IsEmptyStr(in) && isxdigit((byte) *in) && (len-- > 0)) - { - c = *in++; - val <<= 4; - if (!isdigit((unsigned char)c)) { - c = tolower((unsigned char) c); - if ((c < 'a') || (c > 'f')) - return 0; - val += c - 'a' + 10 ; - } - else - val += c - '0'; - } - return val; -} - /* * Extract all that fun stuff out of the cookie. */ diff --git a/webcit/webcit.h b/webcit/webcit.h index 778722d72..3f3fc6b30 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -786,7 +786,6 @@ void end_tab(int tabnum, int num_tabs); void str_wiki_index(char *s); long guess_calhourformat(void); int get_time_format_cached (void); -int xtoi(const char *in, size_t len); const char *get_selected_language(void); void display_wiki_pagelist(void);