Skip to content
Prev Previous commit
Next Next commit
Address Heime's review: Don't define globals twice
  • Loading branch information
Erlend E. Aasland committed Jan 11, 2021
commit 959a225aa64e6605a6cbc21df90fef60a76f3b16
8 changes: 0 additions & 8 deletions Modules/_elementtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2258,8 +2258,6 @@ static PyType_Spec elementiter_spec = {
.slots = elementiter_slots,
};

static PyTypeObject *ElementIter_Type = NULL;

#define INIT_PARENT_STACK_SIZE 8

static PyObject *
Expand Down Expand Up @@ -4216,8 +4214,6 @@ static PyType_Spec element_spec = {
.slots = element_slots,
};

static PyTypeObject *Element_Type = NULL;

static PyMethodDef treebuilder_methods[] = {
_ELEMENTTREE_TREEBUILDER_DATA_METHODDEF
_ELEMENTTREE_TREEBUILDER_START_METHODDEF
Expand Down Expand Up @@ -4246,8 +4242,6 @@ static PyType_Spec treebuilder_spec = {
.slots = treebuilder_slots,
};

static PyTypeObject *TreeBuilder_Type = NULL;

static PyMethodDef xmlparser_methods[] = {
_ELEMENTTREE_XMLPARSER_FEED_METHODDEF
_ELEMENTTREE_XMLPARSER_CLOSE_METHODDEF
Expand Down Expand Up @@ -4276,8 +4270,6 @@ static PyType_Spec xmlparser_spec = {
.slots = xmlparser_slots,
};

static PyTypeObject *XMLParser_Type = NULL;

/* ==================================================================== */
/* python module interface */

Expand Down