Skip to content

Commit

Permalink
Delete some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist committed Oct 3, 2023
1 parent 5584147 commit fc58ea3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions msgspec/_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -8033,20 +8033,6 @@ DataclassInfo_lookup_key(
}


static MS_INLINE PyObject *
DataclassInfo_get_default(DataclassInfo *self, Py_ssize_t i) {
PyObject *default_value = PyTuple_GET_ITEM(self->defaults, i);
bool is_factory = self->fields[i].type->types & MS_EXTRA_FLAG;
if (is_factory) {
default_value = CALL_NO_ARGS(default_value);
if (default_value == NULL) return NULL;
return default_value;
}
Py_INCREF(default_value);
return default_value;
}


static int
DataclassInfo_post_decode(DataclassInfo *self, PyObject *obj, PathNode *path) {
Py_ssize_t nfields = Py_SIZE(self);
Expand Down

0 comments on commit fc58ea3

Please sign in to comment.