diff options
author | Damien George <damien.p.george@gmail.com> | 2015-08-17 22:39:03 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-08-17 22:39:03 +0100 |
commit | 7f70b60f4d05126a838364ee91d288ec8c47d362 (patch) | |
tree | 3c265b43a72ba41a880fbb04848c4a1c1266ce4a /py/compile.c | |
parent | 2a6660ba595bd85a637249cb96a5f451a1aa4034 (diff) |
py: Remove unused compile scope flags, and irrelevant flag compute code.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/py/compile.c b/py/compile.c index b7ec07029..7117fcae5 100644 --- a/py/compile.c +++ b/py/compile.c @@ -3301,18 +3301,6 @@ STATIC void scope_compute_things(scope_t *scope) { scope->num_locals += num_free; } } - - // compute scope_flags - int num_free = 0; - for (int i = 0; i < scope->id_info_len; i++) { - id_info_t *id = &scope->id_info[i]; - if (id->kind == ID_INFO_KIND_CELL || id->kind == ID_INFO_KIND_FREE) { - num_free += 1; - } - } - if (num_free == 0) { - scope->scope_flags |= MP_SCOPE_FLAG_NOFREE; - } } mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is_repl) { |