From: Victor Stinner Date: Sat, 29 May 2010 00:13:06 +0000 (+0000) Subject: Remove dead code X-Git-Tag: v3.2a1~673 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5;p=python Remove dead code --- diff --git a/Python/getargs.c b/Python/getargs.c index ce9f152c9f..4f7bf7a5d7 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1029,18 +1029,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, else return converterr("string or None", arg, msgbuf, bufsize); - if (*format == '#') { - FETCH_SIZE; - assert(0); /* XXX redundant with if-case */ - if (arg == Py_None) { - STORE_SIZE(0); - } - else { - STORE_SIZE(PyBytes_Size(arg)); - } - format++; - } - else if (*p != NULL && uarg != NULL && + if (*p != NULL && uarg != NULL && (Py_ssize_t) strlen(*p) != PyBytes_GET_SIZE(uarg)) return converterr( "string without null bytes or None",