]> granicus.if.org Git - python/commitdiff
bpo-31979: Remove unused align_maxchar() function (#4527)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 23 Nov 2017 18:02:23 +0000 (19:02 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2017 18:02:23 +0000 (19:02 +0100)
Objects/unicodeobject.c

index f6b2b65d1ffba57f6194bdd6bd2c7a485cc16ae3..8d4fea8ede15daacf989356f4b8ef461cb90d056 100644 (file)
@@ -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)
 {