From 4d914891a8f5651f8010ac4e94e523df19070a04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 10 Jan 2010 22:16:34 +0000 Subject: [PATCH] * remove xtoi, its not used anymore. --- webcit/cookie_conversion.c | 23 ----------------------- webcit/webcit.h | 1 - 2 files changed, 24 deletions(-) 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); -- 2.39.2