[Python-checkins] bpo-31979: Remove unused align_maxchar() function (#4527)

Victor Stinner webhook-mailer at python.org
Thu Nov 23 13:02:26 EST 2017


https://github.com/python/cpython/commit/6a54c676e63517653d3d4a1e164bdd0fd45132d8
commit: 6a54c676e63517653d3d4a1e164bdd0fd45132d8
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017年11月23日T19:02:23+01:00
summary:
bpo-31979: Remove unused align_maxchar() function (#4527)
files:
M Objects/unicodeobject.c
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index f6b2b65d1ff..8d4fea8ede1 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)
 {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /