diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-06-15 23:53:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-06-15 23:53:04 (GMT) |
commit | f05e17ece9ee4cf4d04e0657e6c7c9283a233968 (patch) | |
tree | 0a150bb2d895a0bce21be067d45a952b51d192f3 /Objects | |
parent | 0831382d69890eeab58f43588887058a52a1f4b5 (diff) | |
download | cpython-f05e17ece9ee4cf4d04e0657e6c7c9283a233968.zip cpython-f05e17ece9ee4cf4d04e0657e6c7c9283a233968.tar.gz cpython-f05e17ece9ee4cf4d04e0657e6c7c9283a233968.tar.bz2 |
unicodeobject.c: Remove debug code
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c974ffe..9c1a5f0 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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 * _PyUnicode_New(Py_ssize_t length) { @@ -829,10 +825,6 @@ _PyUnicode_New(Py_ssize_t length) return NULL; } -#ifdef Py_DEBUG - ++unicode_old_new_calls; -#endif - unicode = PyObject_New(PyUnicodeObject, &PyUnicode_Type); if (unicode == NULL) return NULL; @@ -909,8 +901,6 @@ unicode_kind_name(PyObject *unicode) } #ifdef Py_DEBUG -static int unicode_new_new_calls = 0; - /* Functions wrapping macros for use in debugger */ char *_PyUnicode_utf8(void *unicode){ return PyUnicode_UTF8(unicode); @@ -979,10 +969,6 @@ PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar) return unicode_empty; } -#ifdef Py_DEBUG - ++unicode_new_new_calls; -#endif - is_ascii = 0; is_sharing = 0; struct_size = sizeof(PyCompactUnicodeObject); |