@@ -1698,13 +1698,6 @@ treebuilder_dealloc(TreeBuilderObject* self)
16981698/* -------------------------------------------------------------------- */
16991699/* handlers */
17001700
1701- LOCAL (PyObject * )
1702- treebuilder_handle_xml (TreeBuilderObject * self , PyObject * encoding ,
1703- PyObject * standalone )
1704- {
1705- Py_RETURN_NONE ;
1706- }
1707-
17081701LOCAL (PyObject * )
17091702treebuilder_handle_start (TreeBuilderObject * self , PyObject * tag ,
17101703 PyObject * attrib )
@@ -1976,22 +1969,10 @@ treebuilder_start(TreeBuilderObject* self, PyObject* args)
19761969 return treebuilder_handle_start (self , tag , attrib );
19771970}
19781971
1979- static PyObject *
1980- treebuilder_xml (TreeBuilderObject * self , PyObject * args )
1981- {
1982- PyObject * encoding ;
1983- PyObject * standalone ;
1984- if (!PyArg_ParseTuple (args , "OO:xml" , & encoding , & standalone ))
1985- return NULL ;
1986-
1987- return treebuilder_handle_xml (self , encoding , standalone );
1988- }
1989-
19901972static PyMethodDef treebuilder_methods [] = {
19911973 {"data" , (PyCFunction ) treebuilder_data , METH_VARARGS },
19921974 {"start" , (PyCFunction ) treebuilder_start , METH_VARARGS },
19931975 {"end" , (PyCFunction ) treebuilder_end , METH_VARARGS },
1994- {"xml" , (PyCFunction ) treebuilder_xml , METH_VARARGS },
19951976 {"close" , (PyCFunction ) treebuilder_close , METH_VARARGS },
19961977 {NULL , NULL }
19971978};
@@ -2052,8 +2033,6 @@ typedef struct {
20522033
20532034 PyObject * names ;
20542035
2055- PyObject * handle_xml ;
2056-
20572036 PyObject * handle_start ;
20582037 PyObject * handle_data ;
20592038 PyObject * handle_end ;
@@ -2506,7 +2485,6 @@ xmlparser(PyObject* self_, PyObject* args, PyObject* kw)
25062485 Py_INCREF (target );
25072486 self -> target = target ;
25082487
2509- self -> handle_xml = PyObject_GetAttrString (target , "xml" );
25102488 self -> handle_start = PyObject_GetAttrString (target , "start" );
25112489 self -> handle_data = PyObject_GetAttrString (target , "data" );
25122490 self -> handle_end = PyObject_GetAttrString (target , "end" );
@@ -2562,7 +2540,6 @@ xmlparser_dealloc(XMLParserObject* self)
25622540 Py_XDECREF (self -> handle_end );
25632541 Py_XDECREF (self -> handle_data );
25642542 Py_XDECREF (self -> handle_start );
2565- Py_XDECREF (self -> handle_xml );
25662543
25672544 Py_DECREF (self -> target );
25682545 Py_DECREF (self -> entity );
0 commit comments