Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f05e17ec
Commit
f05e17ec
authored
Jun 16, 2012
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unicodeobject.c: Remove debug code
parent
0831382d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
Objects/unicodeobject.c
Objects/unicodeobject.c
+0
-14
No files found.
Objects/unicodeobject.c
View file @
f05e17ec
...
...
@@ -803,10 +803,6 @@ resize_copy(PyObject *unicode, Py_ssize_t length)
*/
#ifdef Py_DEBUG
static
int
unicode_old_new_calls
=
0
;
#endif
static
PyUnicodeObject
*
_PyUnicode_New
(
Py_ssize_t
length
)
{
...
...
@@ -829,10 +825,6 @@ _PyUnicode_New(Py_ssize_t length)
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 @@ unicode_kind_name(PyObject *unicode)
}
#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 @@ PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
return
unicode_empty
;
}
#ifdef Py_DEBUG
++
unicode_new_new_calls
;
#endif
is_ascii
=
0
;
is_sharing
=
0
;
struct_size
=
sizeof
(
PyCompactUnicodeObject
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment