Skip to content

Commit

Permalink
Remove FT_UNIMPLEMENTED
Browse files Browse the repository at this point in the history
All instance loads are complete!
  • Loading branch information
mpage committed Dec 13, 2024
1 parent 9975df1 commit 8fc4e53
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,20 +1114,6 @@ instance_has_key(PyObject *obj, PyObject *name, uint32_t *shared_keys_version)
return true;
}

#ifdef Py_GIL_DISABLED

#define FT_UNIMPLEMENTED() \
do { \
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_EXPECTED_ERROR); \
return -1; \
} while (0)

#else

#define FT_UNIMPLEMENTED()

#endif

static int
do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject* name,
bool shadow, uint32_t shared_keys_version,
Expand Down Expand Up @@ -1313,8 +1299,6 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject*
return -1;
}

#undef FT_UNIMPLEMENTED

static int
specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject* name)
{
Expand Down

0 comments on commit 8fc4e53

Please sign in to comment.