summaryrefslogtreecommitdiffstats
path: root/Objects/bytearrayobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-14 09:59:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-14 09:59:46 (GMT)
commitf091033b149792e4084a479444c39636c7be2cad (patch)
tree4f199053a5902cd51d20b2bdf060646f1d057305 /Objects/bytearrayobject.c
parent2bf8993db966256d564d87865ceddf0e33c02500 (diff)
downloadcpython-f091033b149792e4084a479444c39636c7be2cad.zip
cpython-f091033b149792e4084a479444c39636c7be2cad.tar.gz
cpython-f091033b149792e4084a479444c39636c7be2cad.tar.bz2
Issue #25401: Remove now unused hex_digit_to_int() function
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r--Objects/bytearrayobject.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index b270fcc..2103147 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -2789,22 +2789,6 @@ bytearray_splitlines_impl(PyByteArrayObject *self, int keepends)
);
}
-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