Skip to content

Commit

Permalink
Revert adding traverse function
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Feb 15, 2024
1 parent 05d6866 commit 2d9a34e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/key_ordered_dict/type.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@

static PyMethodDef AerospikeKeyOrderedDict_Type_Methods[] = {{NULL}};

static int local_traverse(PyObject *self, visitproc visit, void *arg)
{
AerospikeKeyOrderedDict *self_keyordereddict =
(AerospikeKeyOrderedDict *)self;
Py_VISIT(&self_keyordereddict->dict);
return 0;
}

/*******************************************************************************
* PYTHON TYPE HOOKS
******************************************************************************/
Expand All @@ -56,8 +48,7 @@ static PyTypeObject AerospikeKeyOrderedDict_Type = {
"This assists in matching key ordered maps\n"
"through various read operations.\n",
.tp_methods = AerospikeKeyOrderedDict_Type_Methods,
.tp_init = (initproc)AerospikeKeyOrderedDict_Type_Init,
.tp_traverse = local_traverse};
.tp_init = (initproc)AerospikeKeyOrderedDict_Type_Init};

PyTypeObject *AerospikeKeyOrderedDict_Ready()
{
Expand Down

0 comments on commit 2d9a34e

Please sign in to comment.