Issue #14007: drop unused TreeBuilder().xml.
This commit is contained in:
parent
4e99a315b7
commit
50eee834fd
|
@ -1698,13 +1698,6 @@ treebuilder_dealloc(TreeBuilderObject* self)
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
/* handlers */
|
/* handlers */
|
||||||
|
|
||||||
LOCAL(PyObject*)
|
|
||||||
treebuilder_handle_xml(TreeBuilderObject* self, PyObject* encoding,
|
|
||||||
PyObject* standalone)
|
|
||||||
{
|
|
||||||
Py_RETURN_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
LOCAL(PyObject*)
|
LOCAL(PyObject*)
|
||||||
treebuilder_handle_start(TreeBuilderObject* self, PyObject* tag,
|
treebuilder_handle_start(TreeBuilderObject* self, PyObject* tag,
|
||||||
PyObject* attrib)
|
PyObject* attrib)
|
||||||
|
@ -1976,22 +1969,10 @@ treebuilder_start(TreeBuilderObject* self, PyObject* args)
|
||||||
return treebuilder_handle_start(self, tag, attrib);
|
return treebuilder_handle_start(self, tag, attrib);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject*
|
|
||||||
treebuilder_xml(TreeBuilderObject* self, PyObject* args)
|
|
||||||
{
|
|
||||||
PyObject* encoding;
|
|
||||||
PyObject* standalone;
|
|
||||||
if (!PyArg_ParseTuple(args, "OO:xml", &encoding, &standalone))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return treebuilder_handle_xml(self, encoding, standalone);
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyMethodDef treebuilder_methods[] = {
|
static PyMethodDef treebuilder_methods[] = {
|
||||||
{"data", (PyCFunction) treebuilder_data, METH_VARARGS},
|
{"data", (PyCFunction) treebuilder_data, METH_VARARGS},
|
||||||
{"start", (PyCFunction) treebuilder_start, METH_VARARGS},
|
{"start", (PyCFunction) treebuilder_start, METH_VARARGS},
|
||||||
{"end", (PyCFunction) treebuilder_end, METH_VARARGS},
|
{"end", (PyCFunction) treebuilder_end, METH_VARARGS},
|
||||||
{"xml", (PyCFunction) treebuilder_xml, METH_VARARGS},
|
|
||||||
{"close", (PyCFunction) treebuilder_close, METH_VARARGS},
|
{"close", (PyCFunction) treebuilder_close, METH_VARARGS},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -2052,8 +2033,6 @@ typedef struct {
|
||||||
|
|
||||||
PyObject* names;
|
PyObject* names;
|
||||||
|
|
||||||
PyObject* handle_xml;
|
|
||||||
|
|
||||||
PyObject* handle_start;
|
PyObject* handle_start;
|
||||||
PyObject* handle_data;
|
PyObject* handle_data;
|
||||||
PyObject* handle_end;
|
PyObject* handle_end;
|
||||||
|
@ -2506,7 +2485,6 @@ xmlparser(PyObject* self_, PyObject* args, PyObject* kw)
|
||||||
Py_INCREF(target);
|
Py_INCREF(target);
|
||||||
self->target = target;
|
self->target = target;
|
||||||
|
|
||||||
self->handle_xml = PyObject_GetAttrString(target, "xml");
|
|
||||||
self->handle_start = PyObject_GetAttrString(target, "start");
|
self->handle_start = PyObject_GetAttrString(target, "start");
|
||||||
self->handle_data = PyObject_GetAttrString(target, "data");
|
self->handle_data = PyObject_GetAttrString(target, "data");
|
||||||
self->handle_end = PyObject_GetAttrString(target, "end");
|
self->handle_end = PyObject_GetAttrString(target, "end");
|
||||||
|
@ -2562,7 +2540,6 @@ xmlparser_dealloc(XMLParserObject* self)
|
||||||
Py_XDECREF(self->handle_end);
|
Py_XDECREF(self->handle_end);
|
||||||
Py_XDECREF(self->handle_data);
|
Py_XDECREF(self->handle_data);
|
||||||
Py_XDECREF(self->handle_start);
|
Py_XDECREF(self->handle_start);
|
||||||
Py_XDECREF(self->handle_xml);
|
|
||||||
|
|
||||||
Py_DECREF(self->target);
|
Py_DECREF(self->target);
|
||||||
Py_DECREF(self->entity);
|
Py_DECREF(self->entity);
|
||||||
|
|
Loading…
Reference in New Issue