@@ -36,7 +36,6 @@ static PyObject* ObjectId = NULL;
3636static PyObject * DBRef = NULL ;
3737static PyObject * RECompile = NULL ;
3838static PyObject * UUID = NULL ;
39- static PyObject * UUIDLegacy = NULL ;
4039static PyObject * Timestamp = NULL ;
4140static PyObject * MinKey = NULL ;
4241static PyObject * MaxKey = NULL ;
@@ -190,7 +189,6 @@ static int _reload_object(PyObject** object, char* module_name, char* object_nam
190189 * Returns non-zero on failure. */
191190static int _reload_python_objects (void ) {
192191 if (_reload_object (& Binary , "bson.binary" , "Binary" ) ||
193- _reload_object (& UUIDLegacy , "bson.binary" , "UUIDLegacy" ) ||
194192 _reload_object (& Code , "bson.code" , "Code" ) ||
195193 _reload_object (& ObjectId , "bson.objectid" , "ObjectId" ) ||
196194 _reload_object (& DBRef , "bson.dbref" , "DBRef" ) ||
@@ -1010,12 +1008,6 @@ static PyObject* get_value(const char* buffer, int* position, int type,
10101008
10111009 PyDict_SetItemString (kwargs , "bytes" , data );
10121010 value = PyObject_Call (UUID , args , kwargs );
1013- if (subtype == 3 ) {
1014- PyObject * ul ;
1015- ul = PyObject_CallFunctionObjArgs (UUIDLegacy , value , NULL );
1016- Py_DECREF (value );
1017- value = ul ;
1018- }
10191011
10201012 Py_DECREF (args );
10211013 Py_DECREF (kwargs );
0 commit comments