Skip to content

Commit 21d927d

Browse files
committed
removed PyMemberDef in ArrayForTrees
1 parent 2423125 commit 21d927d

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

pydatastructs/linear_data_structures/_backend/cpp/arrays/ArrayForTrees.hpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,6 @@ static struct PyMethodDef ArrayForTrees_PyMethodDef[] = {
8383
{NULL}
8484
};
8585

86-
static struct PyMemberDef ArrayForTrees_PyMemberDef[] = {
87-
{"size", T_LONG,
88-
offsetof(ArrayForTrees, _size),
89-
READONLY, NULL},
90-
{"_num", T_LONG,
91-
offsetof(ArrayForTrees, _num),
92-
READONLY, NULL},
93-
{"_last_pos_filled", T_LONG,
94-
offsetof(ArrayForTrees, _last_pos_filled),
95-
READONLY, NULL},
96-
{NULL},
97-
};
98-
99-
10086
static PyTypeObject ArrayForTreesType = {
10187
/* tp_name */ PyVarObject_HEAD_INIT(NULL, 0) "ArrayForTrees",
10288
/* tp_basicsize */ sizeof(ArrayForTrees),
@@ -125,7 +111,7 @@ static PyTypeObject ArrayForTreesType = {
125111
/* tp_iter */ 0,
126112
/* tp_iternext */ 0,
127113
/* tp_methods */ ArrayForTrees_PyMethodDef,
128-
/* tp_members */ ArrayForTrees_PyMemberDef,
114+
/* tp_members */ 0,
129115
/* tp_getset */ 0,
130116
/* tp_base */ &DynamicOneDimensionalArrayType,
131117
/* tp_dict */ 0,

0 commit comments

Comments
 (0)