Remove debug code
This commit is contained in:
parent
c9d369f1bf
commit
9a77770add
@ -1371,10 +1371,6 @@ find_maxchar_surrogates(const wchar_t *begin, const wchar_t *end,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
|
||||||
static int unicode_ready_calls = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int
|
int
|
||||||
_PyUnicode_Ready(PyObject *unicode)
|
_PyUnicode_Ready(PyObject *unicode)
|
||||||
{
|
{
|
||||||
@ -1397,10 +1393,6 @@ _PyUnicode_Ready(PyObject *unicode)
|
|||||||
/* Actually, it should neither be interned nor be anything else: */
|
/* Actually, it should neither be interned nor be anything else: */
|
||||||
assert(_PyUnicode_STATE(unicode).interned == SSTATE_NOT_INTERNED);
|
assert(_PyUnicode_STATE(unicode).interned == SSTATE_NOT_INTERNED);
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
|
||||||
++unicode_ready_calls;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode);
|
end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode);
|
||||||
if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end,
|
if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end,
|
||||||
&maxchar, &num_surrogates) == -1)
|
&maxchar, &num_surrogates) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user