mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
unicodeobject.c: Remove debug code
This commit is contained in:
parent
0831382d69
commit
f05e17ece9
1 changed files with 0 additions and 14 deletions
|
@ -803,10 +803,6 @@ resize_copy(PyObject *unicode, Py_ssize_t length)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
|
||||||
static int unicode_old_new_calls = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static PyUnicodeObject *
|
static PyUnicodeObject *
|
||||||
_PyUnicode_New(Py_ssize_t length)
|
_PyUnicode_New(Py_ssize_t length)
|
||||||
{
|
{
|
||||||
|
@ -829,10 +825,6 @@ _PyUnicode_New(Py_ssize_t length)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
|
||||||
++unicode_old_new_calls;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unicode = PyObject_New(PyUnicodeObject, &PyUnicode_Type);
|
unicode = PyObject_New(PyUnicodeObject, &PyUnicode_Type);
|
||||||
if (unicode == NULL)
|
if (unicode == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -909,8 +901,6 @@ unicode_kind_name(PyObject *unicode)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
#ifdef Py_DEBUG
|
||||||
static int unicode_new_new_calls = 0;
|
|
||||||
|
|
||||||
/* Functions wrapping macros for use in debugger */
|
/* Functions wrapping macros for use in debugger */
|
||||||
char *_PyUnicode_utf8(void *unicode){
|
char *_PyUnicode_utf8(void *unicode){
|
||||||
return PyUnicode_UTF8(unicode);
|
return PyUnicode_UTF8(unicode);
|
||||||
|
@ -979,10 +969,6 @@ PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
|
||||||
return unicode_empty;
|
return unicode_empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Py_DEBUG
|
|
||||||
++unicode_new_new_calls;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
is_ascii = 0;
|
is_ascii = 0;
|
||||||
is_sharing = 0;
|
is_sharing = 0;
|
||||||
struct_size = sizeof(PyCompactUnicodeObject);
|
struct_size = sizeof(PyCompactUnicodeObject);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue