Skip to content

Commit 4c7bfdf

Browse files
authored
Remove more remnants of deepfreeze (python#118159)
1 parent 8974a63 commit 4c7bfdf

File tree

5 files changed

+0
-29
lines changed

5 files changed

+0
-29
lines changed

Include/incl.tar

1.78 MB
Binary file not shown.

Include/internal/pycore_code.h

-5
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,6 @@ extern void _Py_Specialize_Send(PyObject *receiver, _Py_CODEUNIT *instr);
288288
extern void _Py_Specialize_ToBool(PyObject *value, _Py_CODEUNIT *instr);
289289
extern void _Py_Specialize_ContainsOp(PyObject *value, _Py_CODEUNIT *instr);
290290

291-
/* Finalizer function for static codeobjects used in deepfreeze.py */
292-
extern void _PyStaticCode_Fini(PyCodeObject *co);
293-
/* Function to intern strings of codeobjects and quicken the bytecode */
294-
extern int _PyStaticCode_Init(PyCodeObject *co);
295-
296291
#ifdef Py_STATS
297292

298293
#include "pycore_bitutils.h" // _Py_bit_length

Include/internal/pycore_pylifecycle.h

-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ extern PyStatus _Py_HashRandomization_Init(const PyConfig *);
4242

4343
extern PyStatus _PyGC_Init(PyInterpreterState *interp);
4444
extern PyStatus _PyAtExit_Init(PyInterpreterState *interp);
45-
extern int _Py_Deepfreeze_Init(void);
4645

4746
/* Various internal finalizers */
4847

@@ -58,7 +57,6 @@ extern void _PyWarnings_Fini(PyInterpreterState *interp);
5857
extern void _PyAST_Fini(PyInterpreterState *interp);
5958
extern void _PyAtExit_Fini(PyInterpreterState *interp);
6059
extern void _PyThread_FiniType(PyInterpreterState *interp);
61-
extern void _Py_Deepfreeze_Fini(void);
6260
extern void _PyArg_Fini(void);
6361
extern void _Py_FinalizeAllocatedBlocks(_PyRuntimeState *);
6462

Programs/_bootstrap_python.c

-11
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@
1515
#include "Python/frozen_modules/zipimport.h"
1616
/* End includes */
1717

18-
/* Empty initializer for deepfrozen modules */
19-
int _Py_Deepfreeze_Init(void)
20-
{
21-
return 0;
22-
}
23-
/* Empty finalizer for deepfrozen modules */
24-
void
25-
_Py_Deepfreeze_Fini(void)
26-
{
27-
}
28-
2918
/* Note that a negative size indicates a package. */
3019

3120
static const struct _frozen bootstrap_modules[] = {

Programs/_freeze_module.c

-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@
2222
# include <unistd.h>
2323
#endif
2424

25-
/* Empty initializer for deepfrozen modules */
26-
int _Py_Deepfreeze_Init(void)
27-
{
28-
return 0;
29-
}
30-
/* Empty finalizer for deepfrozen modules */
31-
void
32-
_Py_Deepfreeze_Fini(void)
33-
{
34-
}
35-
3625
/* To avoid a circular dependency on frozen.o, we create our own structure
3726
of frozen modules instead, left deliberately blank so as to avoid
3827
unintentional import of a stale version of _frozen_importlib. */

0 commit comments

Comments
 (0)