--- common.cpp~ 2022-10-24 23:27:33.000000000 -0500 +++ common.cpp 2023-03-09 09:44:13.652450597 -0600 @@ -361,33 +361,6 @@ PyUnicode_READY(object); switch (PyUnicode_KIND(object)) { - case PyUnicode_WCHAR_KIND: { // this code path should be deprecated - if (SIZEOF_WCHAR_T == sizeof(UChar)) - { - Py_ssize_t len; - wchar_t *wchars = PyUnicode_AsWideCharString(object, &len); - - if (wchars != NULL) - { - string.setTo((const UChar *) wchars, len); - PyMem_Free(wchars); - } - } - else if (SIZEOF_WCHAR_T == sizeof(UChar32)) - { - Py_ssize_t len; - wchar_t *wchars = PyUnicode_AsWideCharString(object, &len); - - if (wchars != NULL) - { - string = UnicodeString::fromUTF32( - (const UChar32 *) wchars, len); - PyMem_Free(wchars); - } - } - break; - } - case PyUnicode_1BYTE_KIND: { Py_ssize_t len = PyUnicode_GET_LENGTH(object); Py_UCS1 *pchars = PyUnicode_1BYTE_DATA(object);