Skip to content

Commit

Permalink
Fix last upb warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed Sep 18, 2024
1 parent 98d34b2 commit 52a541c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions python/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,6 @@ static Py_ssize_t PyUpb_MapContainer_Length(PyObject* _self) {
return map ? upb_Map_Size(map) : 0;
}

static PyUpb_MapContainer* PyUpb_MapContainer_Check(PyObject* _self) {
PyUpb_ModuleState* state = PyUpb_ModuleState_Get();
if (!PyObject_TypeCheck(_self, state->message_map_container_type) &&
!PyObject_TypeCheck(_self, state->scalar_map_container_type)) {
PyErr_Format(PyExc_TypeError, "Expected protobuf map, but got %R", _self);
return NULL;
}
return (PyUpb_MapContainer*)_self;
}

int PyUpb_Message_InitMapAttributes(PyObject* map, PyObject* value,
const upb_FieldDef* f);

Expand Down

0 comments on commit 52a541c

Please sign in to comment.