changeset: 98744:09e0533f3694 user: Victor Stinner date: Wed Oct 14 11:59:46 2015 +0200 files: Objects/bytearrayobject.c description: Issue #25401: Remove now unused hex_digit_to_int() function diff -r 55d207a637ff -r 09e0533f3694 Objects/bytearrayobject.c --- a/Objects/bytearrayobject.c Wed Oct 14 11:25:33 2015 +0200 +++ b/Objects/bytearrayobject.c Wed Oct 14 11:59:46 2015 +0200 @@ -2789,22 +2789,6 @@ ); } -static int -hex_digit_to_int(Py_UCS4 c) -{ - if (c >= 128) - return -1; - if (Py_ISDIGIT(c)) - return c - '0'; - else { - if (Py_ISUPPER(c)) - c = Py_TOLOWER(c); - if (c >= 'a' && c <= 'f') - return c - 'a' + 10; - } - return -1; -} - /*[clinic input] @classmethod bytearray.fromhex