Kaydet (Commit) d238cb81 authored tarafından Alexandre Vassalotti's avatar Alexandre Vassalotti

Removed unused variable.

üst 7179220b
...@@ -5539,7 +5539,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table, ...@@ -5539,7 +5539,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
size_t hi = tablesize; size_t hi = tablesize;
int cmp; int cmp;
const char *confname; const char *confname;
Py_ssize_t namelen;
if (!PyUnicode_Check(arg)) { if (!PyUnicode_Check(arg)) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"configuration names must be strings or integers"); "configuration names must be strings or integers");
...@@ -5548,7 +5547,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table, ...@@ -5548,7 +5547,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
confname = PyUnicode_AsString(arg); confname = PyUnicode_AsString(arg);
if (confname == NULL) if (confname == NULL)
return 0; return 0;
namelen = strlen(confname);
while (lo < hi) { while (lo < hi) {
mid = (lo + hi) / 2; mid = (lo + hi) / 2;
cmp = strcmp(confname, table[mid].name); cmp = strcmp(confname, table[mid].name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment