[Python-checkins] cpython: unicodeobject.c: Remove debug code

victor.stinner python-checkins at python.org
Sat Jun 16 02:29:09 CEST 2012


http://hg.python.org/cpython/rev/41b1710ee333
changeset:   77459:41b1710ee333
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jun 16 01:53:04 2012 +0200
summary:
  unicodeobject.c: Remove debug code

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


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -803,10 +803,6 @@
 
 */
 
-#ifdef Py_DEBUG
-static int unicode_old_new_calls = 0;
-#endif
-
 static PyUnicodeObject *
 _PyUnicode_New(Py_ssize_t length)
 {
@@ -829,10 +825,6 @@
         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 @@
 }
 
 #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 @@
         return unicode_empty;
     }
 
-#ifdef Py_DEBUG
-    ++unicode_new_new_calls;
-#endif
-
     is_ascii = 0;
     is_sharing = 0;
     struct_size = sizeof(PyCompactUnicodeObject);

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


More information about the Python-checkins mailing list