[Python-checkins] cpython: Remove debug code

victor.stinner python-checkins at python.org
Sat Jun 16 03:03:15 CEST 2012


http://hg.python.org/cpython/rev/c7d3e326ff78
changeset:   77461:c7d3e326ff78
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jun 16 02:44:43 2012 +0200
summary:
  Remove debug code

files:
  Objects/unicodeobject.c |  8 --------
  1 files changed, 0 insertions(+), 8 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1371,10 +1371,6 @@
     return 0;
 }
 
-#ifdef Py_DEBUG
-static int unicode_ready_calls = 0;
-#endif
-
 int
 _PyUnicode_Ready(PyObject *unicode)
 {
@@ -1397,10 +1393,6 @@
     /* 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list