Skip to content

Commit 2f30f99

Browse files
cleanup unused code
1 parent a96d52b commit 2f30f99

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/JSArrayProxy.cc

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,31 +1178,12 @@ extern PyObject *const *_PyArg_UnpackKeywords(
11781178
);
11791179

11801180
PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_sort(JSArrayProxy *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
1181-
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1182-
1183-
#define NUM_KEYWORDS 2
1184-
static struct {
1185-
PyGC_Head _this_is_not_used;
1186-
PyObject_VAR_HEAD
1187-
PyObject *ob_item[NUM_KEYWORDS];
1188-
} _kwtuple = {
1189-
.ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1190-
.ob_item = {&_Py_ID(key), &_Py_ID(reverse), },
1191-
};
1192-
#undef NUM_KEYWORDS
1193-
#define KWTUPLE (&_kwtuple.ob_base.ob_base)
1194-
1195-
#else // !Py_BUILD_CORE
1196-
# define KWTUPLE NULL
1197-
#endif // !Py_BUILD_CORE
1198-
11991181
static const char *const _keywords[] = {"key", "reverse", NULL};
12001182
static _PyArg_Parser _parser = {
12011183
.keywords = _keywords,
12021184
.fname = "sort",
1203-
.kwtuple = KWTUPLE,
1185+
.kwtuple = NULL,
12041186
};
1205-
#undef KWTUPLE
12061187

12071188
PyObject *argsbuf[2];
12081189
Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0;

0 commit comments

Comments
 (0)