diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-06-16 00:44:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-06-16 00:44:43 (GMT) |
commit | 9a77770add346617c1abcc3d1ad5efa96fc993ce (patch) | |
tree | 4cca5a20238c8e6502e06c3e80ab5a240d37f2e5 /Objects | |
parent | c9d369f1bf78c48083679b2afa5f31d8378ea94d (diff) | |
download | cpython-9a77770add346617c1abcc3d1ad5efa96fc993ce.zip cpython-9a77770add346617c1abcc3d1ad5efa96fc993ce.tar.gz cpython-9a77770add346617c1abcc3d1ad5efa96fc993ce.tar.bz2 |
Remove debug code
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 80a583c..a9062ed 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1371,10 +1371,6 @@ find_maxchar_surrogates(const wchar_t *begin, const wchar_t *end, return 0; } -#ifdef Py_DEBUG -static int unicode_ready_calls = 0; -#endif - int _PyUnicode_Ready(PyObject *unicode) { @@ -1397,10 +1393,6 @@ _PyUnicode_Ready(PyObject *unicode) /* Actually, it should neither be interned nor be anything else: */ assert(_PyUnicode_STATE(unicode).interned == SSTATE_NOT_INTERNED); -#ifdef Py_DEBUG - ++unicode_ready_calls; -#endif - end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode); if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end, &maxchar, &num_surrogates) == -1) |