From 0648585c50043a79c8434308cf6225f32f44d8da Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 5 Apr 2009 18:08:16 -0400 Subject: Remove debug printf of calls to should_trace: it's only called when I thought it was being called. --- coverage/tracer.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'coverage/tracer.c') diff --git a/coverage/tracer.c b/coverage/tracer.c index d333eb6..5a49bf7 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -26,8 +26,6 @@ typedef struct { int depth; // Filenames to record at each level, or NULL if not recording. PyObject * tracenames[300]; - - IFDEBUG(int nshould;) } Tracer; static int @@ -38,7 +36,6 @@ Tracer_init(Tracer *self, PyObject *args, PyObject *kwds) self->should_trace_cache = NULL; self->started = 0; self->depth = -1; - IFDEBUG(self->nshould = 0;) return 0; } @@ -81,7 +78,6 @@ Tracer_trace(Tracer *self, PyFrameObject *frame, int what, PyObject *arg) tracename = PyDict_GetItem(self->should_trace_cache, filename); if (tracename == NULL) { // We've never considered this file before. Ask should_trace about it. - IFDEBUG(self->nshould++;) PyObject * args = Py_BuildValue("(O)", filename); tracename = PyObject_Call(self->should_trace, args, NULL); Py_DECREF(args); @@ -140,7 +136,6 @@ Tracer_stop(Tracer *self, PyObject *args) PyEval_SetTrace(NULL, NULL); self->started = 0; } - IFDEBUG(printf("nshould=%d\n", self->nshould);) return Py_BuildValue(""); } -- cgit v1.2.1