From 45a5631c8786fe0540dc446569623d9a515c9449 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 21 Jun 2020 11:48:39 +0200 Subject: [PATCH] Remove dead code from tracemalloc tracemalloc_get_frame() checked filename == NULL two times in a row. Signed-off-by: Christian Heimes --- Modules/_tracemalloc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 567571657453e7..fc91622d3925b8 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -319,10 +319,6 @@ tracemalloc_get_frame(PyFrameObject *pyframe, frame_t *frame) return; } - assert(filename != NULL); - if (filename == NULL) - return; - if (!PyUnicode_Check(filename)) { #ifdef TRACE_DEBUG tracemalloc_error("filename is not a unicode string");