Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1a38c8

Browse files
committed
A bit more tidying up
1 parent 1545508 commit a1a38c8

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

Include/internal/pycore_stackref.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ static const _PyStackRef PyStackRef_NULL = { .bits = 0 };
189189

190190
#endif // Py_GIL_DISABLED
191191

192-
#define PyStackRef_IsNonNullMortal(stackref) (!PyStackRef_IsNull(stackref) && !_Py_IsImmortal(PyStackRef_AsPyObjectBorrow(stackref)))
193-
194192
// Check if a stackref is exactly the same as another stackref, including the
195193
// the deferred bit. This can only be used safely if you know that the deferred
196194
// bits of `a` and `b` match.

Objects/typeobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4156,7 +4156,6 @@ type_new_descriptors(const type_new_ctx *ctx, PyTypeObject *type)
41564156
assert((type->tp_flags & Py_TPFLAGS_MANAGED_DICT) == 0);
41574157
type->tp_flags |= Py_TPFLAGS_MANAGED_DICT;
41584158
type->tp_dictoffset = -1;
4159-
41604159
if (type->tp_basicsize == sizeof(PyObject *)) {
41614160
type->tp_traverse = plain_object_traverse;
41624161
}
@@ -6246,7 +6245,6 @@ PyDoc_STRVAR(type_doc,
62466245
"type(object) -> the object's type\n"
62476246
"type(name, bases, dict, **kwds) -> a new type");
62486247

6249-
62506248
static int
62516249
type_traverse(PyObject *self, visitproc visit, void *arg)
62526250
{

Python/gc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,6 @@ push_to_stack(PyGC_Head *gc, WorkStack *stack)
13401340
{
13411341
PyGC_Head *prev = GC_PREV(gc);
13421342
PyGC_Head *next = GC_NEXT(gc);
1343-
13441343
_PyGCHead_SET_NEXT(prev, next);
13451344
_PyGCHead_SET_PREV(next, prev);
13461345
_PyGCHead_SET_PREV(gc, stack->top);

0 commit comments

Comments
 (0)