]> granicus.if.org Git - python/commitdiff
Remove debug code
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 16 Jun 2012 00:44:43 +0000 (02:44 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 16 Jun 2012 00:44:43 +0000 (02:44 +0200)
Objects/unicodeobject.c

index 80a583cb68ed33e08db7c65edd9890554f623c7f..a9062edf4d52bd9199e04477de299c42d13f5803 100644 (file)
@@ -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)