From b6eebbb75d7a475ec0986d7f8625b7dc9a002a46 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Sun, 6 Sep 2026 13:34:40 -0400 Subject: [PATCH] (NFC) Remove unused truncated variable. It is not used and hasn't been, so we can remove it. Remove i, len, and data too. --- Python/_warnings.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Python/_warnings.c b/Python/_warnings.c index 586cec195fac680..32b34de71494e52 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -679,27 +679,7 @@ show_warning(PyThreadState *tstate, PyObject *filename, int lineno, /* Print " source_line\n" */ if (sourceline) { - int kind; - const void *data; - Py_ssize_t i, len; - Py_UCS4 ch; - PyObject *truncated; - - kind = PyUnicode_KIND(sourceline); - data = PyUnicode_DATA(sourceline); - len = PyUnicode_GET_LENGTH(sourceline); - for (i=0; i