summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-06-29 01:46:51 (GMT)
committerGitHub <noreply@github.com>2020-06-29 01:46:51 (GMT)
commitd9f2a13106254c53550583adca70aeb3979f2993 (patch)
treea788d021fde88b2d0f8a328105a9b9a97f450167 /Objects/unicodeobject.c
parent8bea91b5e9ea07ca93958e131b436024f0b1b1cf (diff)
downloadcpython-d9f2a13106254c53550583adca70aeb3979f2993.zip
cpython-d9f2a13106254c53550583adca70aeb3979f2993.tar.gz
cpython-d9f2a13106254c53550583adca70aeb3979f2993.tar.bz2
bpo-41123: Remove PyUnicode_GetMax() (GH-21192)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index dc0f525..6fa6c3f 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -497,20 +497,6 @@ unicode_check_encoding_errors(const char *encoding, const char *errors)
}
-/* The max unicode value is always 0x10FFFF while using the PEP-393 API.
- This function is kept for backward compatibility with the old API. */
-Py_UNICODE
-PyUnicode_GetMax(void)
-{
-#ifdef Py_UNICODE_WIDE
- return 0x10FFFF;
-#else
- /* This is actually an illegal character, so it should
- not be passed to unichr. */
- return 0xFFFF;
-#endif
-}
-
int
_PyUnicode_CheckConsistency(PyObject *op, int check_content)
{