diff --git a/Python/_warnings.c b/Python/_warnings.c index 586cec195fac68..32b34de71494e5 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