From 43fb0097f3ab4920b5a40e13ef5ffea976f1e0c5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 29 May 2010 00:13:06 +0000 Subject: Remove dead code --- Python/getargs.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Python/getargs.c b/Python/getargs.c index ce9f152..4f7bf7a 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", -- cgit v0.12