@@ -115,7 +115,6 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
115
115
ste -> ste_scope_info = NULL ;
116
116
117
117
ste -> ste_nested = 0 ;
118
- ste -> ste_free = 0 ;
119
118
ste -> ste_varargs = 0 ;
120
119
ste -> ste_varkeywords = 0 ;
121
120
ste -> ste_annotations_used = 0 ;
@@ -125,7 +124,6 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
125
124
(st -> st_cur -> ste_nested ||
126
125
_PyST_IsFunctionLike (st -> st_cur )))
127
126
ste -> ste_nested = 1 ;
128
- ste -> ste_child_free = 0 ;
129
127
ste -> ste_generator = 0 ;
130
128
ste -> ste_coroutine = 0 ;
131
129
ste -> ste_comprehension = NoComprehension ;
@@ -299,8 +297,6 @@ static void _dump_symtable(PySTEntryObject* ste, PyObject* prefix)
299
297
comptype ,
300
298
prefix ,
301
299
ste -> ste_nested ? " nested" : "" ,
302
- ste -> ste_free ? " free" : "" ,
303
- ste -> ste_child_free ? " child_free" : "" ,
304
300
ste -> ste_generator ? " generator" : "" ,
305
301
ste -> ste_coroutine ? " coroutine" : "" ,
306
302
ste -> ste_varargs ? " varargs" : "" ,
@@ -692,7 +688,6 @@ analyze_name(PySTEntryObject *ste, PyObject *scopes, PyObject *name, long flags,
692
688
return error_at_directive (ste , name );
693
689
}
694
690
SET_SCOPE (scopes , name , FREE );
695
- ste -> ste_free = 1 ;
696
691
return PySet_Add (free , name ) >= 0 ;
697
692
}
698
693
if (flags & DEF_BOUND ) {
@@ -741,7 +736,6 @@ analyze_name(PySTEntryObject *ste, PyObject *scopes, PyObject *name, long flags,
741
736
}
742
737
if (contains ) {
743
738
SET_SCOPE (scopes , name , FREE );
744
- ste -> ste_free = 1 ;
745
739
return PySet_Add (free , name ) >= 0 ;
746
740
}
747
741
}
@@ -758,8 +752,6 @@ analyze_name(PySTEntryObject *ste, PyObject *scopes, PyObject *name, long flags,
758
752
return 1 ;
759
753
}
760
754
}
761
- if (ste -> ste_nested )
762
- ste -> ste_free = 1 ;
763
755
SET_SCOPE (scopes , name , GLOBAL_IMPLICIT );
764
756
return 1 ;
765
757
}
@@ -842,7 +834,6 @@ inline_comprehension(PySTEntryObject *ste, PySTEntryObject *comp,
842
834
}
843
835
}
844
836
}
845
- comp -> ste_free = PySet_Size (comp_free ) > 0 ;
846
837
if (remove_dunder_class && PyDict_DelItemString (comp -> ste_symbols , "__class__" ) < 0 ) {
847
838
return 0 ;
848
839
}
@@ -1202,9 +1193,6 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
1202
1193
if (!temp )
1203
1194
goto error ;
1204
1195
Py_DECREF (temp );
1205
- /* Check if any children have free variables */
1206
- if (entry -> ste_free || entry -> ste_child_free )
1207
- ste -> ste_child_free = 1 ;
1208
1196
}
1209
1197
1210
1198
/* Splice children of inlined comprehensions into our children list */
0 commit comments