diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-16 15:56:27 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-16 15:56:27 +0200 |
| commit | dddec81b2d0f0df7e91f2cafc3c2e4121cb6c1d6 (patch) | |
| tree | a38a5f8bf523dcf4045bd62eea5da3937c10110b /Objects/unicodeobject.c | |
| parent | fab6acd9f58584d2f4b361418e4d17f9c23db2f9 (diff) | |
| download | cpython-git-dddec81b2d0f0df7e91f2cafc3c2e4121cb6c1d6.tar.gz | |
Issue #21449: Removed private function _PyUnicode_CompareWithId.
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index d5ccfb8d07..8bbf0d594f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -11012,15 +11012,6 @@ PyUnicode_Compare(PyObject *left, PyObject *right) } int -_PyUnicode_CompareWithId(PyObject *left, _Py_Identifier *right) -{ - PyObject *right_str = _PyUnicode_FromId(right); /* borrowed */ - if (right_str == NULL) - return -1; - return PyUnicode_Compare(left, right_str); -} - -int PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str) { Py_ssize_t i; |
