mirror of
https://github.com/python/cpython.git
synced 2025-07-13 14:25:18 +00:00
bpo-39465: Remove _PyUnicode_ClearStaticStrings() from C API (GH-20078)
Remove the _PyUnicode_ClearStaticStrings() function from the C API. Make the function fully private (declare it with "static").
This commit is contained in:
parent
d72ea60521
commit
d6fb53fe42
5 changed files with 8 additions and 6 deletions
|
@ -2289,8 +2289,8 @@ _PyUnicode_FromId(_Py_Identifier *id)
|
|||
return id->object;
|
||||
}
|
||||
|
||||
void
|
||||
_PyUnicode_ClearStaticStrings()
|
||||
static void
|
||||
unicode_clear_static_strings(void)
|
||||
{
|
||||
_Py_Identifier *tmp, *s = static_strings;
|
||||
while (s) {
|
||||
|
@ -16196,7 +16196,7 @@ _PyUnicode_Fini(PyThreadState *tstate)
|
|||
Py_CLEAR(unicode_latin1[i]);
|
||||
}
|
||||
#endif
|
||||
_PyUnicode_ClearStaticStrings();
|
||||
unicode_clear_static_strings();
|
||||
}
|
||||
|
||||
_PyUnicode_FiniEncodings(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue