Skip to content

Commit b7c9d77

Browse files
committed
cleanup after merge to main
1 parent 7315c49 commit b7c9d77

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

Modules/_threadmodule.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# include <signal.h> // SIGINT
1919
#endif
2020

21-
2221
// ThreadError is just an alias to PyExc_RuntimeError
2322
#define ThreadError PyExc_RuntimeError
2423

@@ -59,14 +58,6 @@ get_thread_state_by_cls(PyTypeObject *cls)
5958
return get_thread_state(module);
6059
}
6160

62-
static inline thread_module_state *
63-
find_state_by_type(PyTypeObject *tp)
64-
{
65-
PyObject *mod = PyType_GetModuleByDef(tp, &thread_module);
66-
assert(mod != NULL);
67-
return get_thread_state(mod);
68-
}
69-
7061

7162
#ifdef MS_WINDOWS
7263
typedef HRESULT (WINAPI *PF_GET_THREAD_DESCRIPTION)(HANDLE, PCWSTR*);
@@ -78,12 +69,12 @@ static PF_SET_THREAD_DESCRIPTION pSetThreadDescription = NULL;
7869

7970
/*[clinic input]
8071
module _thread
81-
class _thread.iter_locked "iter_locked_object *" "find_state_by_type(type)->iter_locked_type"
72+
class _thread.iter_locked "iter_locked_object *" "clinic_state()->iter_locked_type"
8273
class _thread.lock "lockobject *" "clinic_state()->lock_type"
8374
class _thread.RLock "rlockobject *" "clinic_state()->rlock_type"
8475
8576
[clinic start generated code]*/
86-
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=6afac42991bc8469]*/
77+
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=1a4bf65233f83eae]*/
8778

8879
#define clinic_state() get_thread_state_by_cls(type)
8980
#include "clinic/_threadmodule.c.h"

Modules/clinic/_threadmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)