From 7c2c516353bbf6fae20fb5ec8fba373cf70d3aba Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 16 May 2016 21:30:31 +0000 Subject: move convert_digit from fallback to common It's not required as part of fallback functions any more. --- src/fallback.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/fallback.cpp') diff --git a/src/fallback.cpp b/src/fallback.cpp index 74635acc..7a829124 100644 --- a/src/fallback.cpp +++ b/src/fallback.cpp @@ -161,22 +161,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c) { } #endif -long convert_digit(wchar_t d, int base) { - long res = -1; - if ((d <= L'9') && (d >= L'0')) { - res = d - L'0'; - } else if ((d <= L'z') && (d >= L'a')) { - res = d + 10 - L'a'; - } else if ((d <= L'Z') && (d >= L'A')) { - res = d + 10 - L'A'; - } - if (res >= base) { - res = -1; - } - - return res; -} - #ifndef HAVE_WCSLCAT /*$OpenBSD: strlcat.c,v 1.11 2003/06/17 21:56:24 millert Exp $*/ -- cgit v1.2.3