[Python-checkins] cpython: Issue #25401: Remove now unused hex_digit_to_int() function
victor.stinner
python-checkins at python.org
Wed Oct 14 06:05:50 EDT 2015
https://hg.python.org/cpython/rev/09e0533f3694
changeset: 98744:09e0533f3694
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Oct 14 11:59:46 2015 +0200
summary:
Issue #25401: Remove now unused hex_digit_to_int() function
files:
Objects/bytearrayobject.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list