summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-23 18:02:23 (GMT)
committerGitHub <noreply@github.com>2017-11-23 18:02:23 (GMT)
commit6a54c676e63517653d3d4a1e164bdd0fd45132d8 (patch)
treeabeb61a623e43c94e39202b54f4afd83f5d64acb
parentb9197959c186f9061bd74d0adc20e96556426db4 (diff)
downloadcpython-6a54c676e63517653d3d4a1e164bdd0fd45132d8.zip
cpython-6a54c676e63517653d3d4a1e164bdd0fd45132d8.tar.gz
cpython-6a54c676e63517653d3d4a1e164bdd0fd45132d8.tar.bz2
bpo-31979: Remove unused align_maxchar() function (#4527)
-rw-r--r--Objects/unicodeobject.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index f6b2b65..8d4fea8 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2171,19 +2171,6 @@ kind_maxchar_limit(unsigned int kind)
}
}
-static inline Py_UCS4
-align_maxchar(Py_UCS4 maxchar)
-{
- if (maxchar <= 127)
- return 127;
- else if (maxchar <= 255)
- return 255;
- else if (maxchar <= 65535)
- return 65535;
- else
- return MAX_UNICODE;
-}
-
static PyObject*
_PyUnicode_FromUCS1(const Py_UCS1* u, Py_ssize_t size)
{