summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-16 15:56:50 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-16 15:56:50 +0200
commit503db266a5fa4043b57f558645f4bfe18ffec5b6 (patch)
tree2241d3dcacfc28883acd9649444f585e7efee872 /Objects/unicodeobject.c
parent29a54473600bc69975fd84b67570f5b04c447d84 (diff)
parentdddec81b2d0f0df7e91f2cafc3c2e4121cb6c1d6 (diff)
downloadcpython-git-503db266a5fa4043b57f558645f4bfe18ffec5b6.tar.gz
Issue #21449: Removed private function _PyUnicode_CompareWithId.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2c1f5c34dc..4b28ce4666 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10993,15 +10993,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;