File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 36
36
37
37
/* -------------------------------------------------------------------- */
38
38
39
- #if 0
40
- static int memory = 0 ;
41
- #define ALLOC (size , comment )\
42
- do { memory += size; printf("%8d - %s\n", memory, comment); } while (0)
43
- #define RELEASE (size , comment )\
44
- do { memory -= size; printf("%8d - %s\n", memory, comment); } while (0)
45
- #else
46
- #define ALLOC (size , comment )
47
- #define RELEASE (size , comment )
48
- #endif
49
-
50
39
/* compiler tweaks */
51
40
#if defined(_MSC_VER )
52
41
#define LOCAL (type ) static __inline type __fastcall
@@ -301,7 +290,6 @@ create_new_element(PyObject* tag, PyObject* attrib)
301
290
302
291
self -> weakreflist = NULL ;
303
292
304
- ALLOC (sizeof (ElementObject ), "create element" );
305
293
PyObject_GC_Track (self );
306
294
307
295
if (attrib != NULL && !is_empty_dict (attrib )) {
@@ -676,7 +664,6 @@ element_dealloc(ElementObject* self)
676
664
*/
677
665
element_gc_clear (self );
678
666
679
- RELEASE (sizeof (ElementObject ), "destroy element" );
680
667
Py_TYPE (self )-> tp_free ((PyObject * )self );
681
668
Py_TRASHCAN_END
682
669
}
You can’t perform that action at this time.
0 commit comments