summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-01 15:41:49 +0300
committerGitHub <noreply@github.com>2020-04-01 15:41:49 +0300
commit17b4733f2ff0a4abc06e8c745755c06fc32942dd (patch)
treec2c4d1144db8e4276ff0ebc74304d9008dcd10c1 /Include
parent3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699 (diff)
downloadcpython-git-17b4733f2ff0a4abc06e8c745755c06fc32942dd.tar.gz
bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265)
Make it a static function, and pass known attributes (kind, data, length) instead of the PyUnicode object.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/unicodeobject.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 0df64790c1..81a35cdc80 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -726,12 +726,6 @@ PyAPI_FUNC(int) _PyUnicode_FormatAdvancedWriter(
Py_ssize_t start,
Py_ssize_t end);
-/* --- wchar_t support for platforms which support it --------------------- */
-
-#ifdef HAVE_WCHAR_H
-PyAPI_FUNC(void*) _PyUnicode_AsKind(PyObject *s, unsigned int kind);
-#endif
-
/* --- Manage the default encoding ---------------------------------------- */
/* Returns a pointer to the default encoding (UTF-8) of the