summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-06-16 02:44:43 +0200
committerVictor Stinner <victor.stinner@gmail.com>2012-06-16 02:44:43 +0200
commit894e3d520db351d6076016ed81924660fa2f9031 (patch)
tree46da5e7f89b4c0138bb256d723a85c9f06c2d150 /Objects
parent8ebaf6f9098e414c044616640ce8200a6c094af5 (diff)
downloadcpython-894e3d520db351d6076016ed81924660fa2f9031.tar.gz
Remove debug code
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 80a583cb68..a9062edf4d 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)