Skip to content

Commit 87b63f9

Browse files
committed
Remove unused code.
1 parent 98f73a1 commit 87b63f9

File tree

5 files changed

+1
-17
lines changed

5 files changed

+1
-17
lines changed

Include/internal/pycore_code.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,6 @@ PyAPI_FUNC(PyObject*) _Py_GetSpecializationStats(void);
362362
#define OBJECT_STAT_INC(name) ((void)0)
363363
#endif
364364

365-
366-
unsigned int unaligned_load_big(unsigned short *p) {
367-
return (p[0] << 16) | p[1];
368-
}
369-
370-
unsigned int unaligned_load_little(unsigned short *p) {
371-
return (p[1] << 16) | p[0];
372-
}
373-
374365
// Cache values are only valid in memory, so use native endianness.
375366
#ifdef WORDS_BIGENDIAN
376367

Include/opcode.h

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

Lib/opcode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def jabs_op(name, op, entries=0):
198198
def_op('KW_NAMES', 172)
199199
hasconst.append(172)
200200

201-
def_op('CACHE_ENTRY', 240)
202201

203202
del def_op, name_op, jrel_op, jabs_op
204203

Python/ceval.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,11 +1731,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
17311731
DISPATCH();
17321732
}
17331733

1734-
TARGET(CACHE_ENTRY) {
1735-
_PyErr_SetString(tstate, PyExc_SystemError, "Attempting to execute a cache entry");
1736-
goto error;
1737-
}
1738-
17391734
TARGET(RESUME) {
17401735
int err = _Py_IncrementCountAndMaybeQuicken(frame->f_code);
17411736
if (err) {

Python/opcode_targets.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)