mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
OKtoRemoveSymbol: Return the symbol as specified, instead of True
This commit is contained in:
parent
8322284faa
commit
aca4cc2721
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class deadcode(object):
|
||||||
sym = self.symtab[curnode.scope][curnode.name]
|
sym = self.symtab[curnode.scope][curnode.name]
|
||||||
|
|
||||||
if 'R' not in sym:
|
if 'R' not in sym:
|
||||||
return True # if not used, it can be removed
|
return sym # if not used, it can be removed
|
||||||
|
|
||||||
# Event parameters do not have 'W' in sym.
|
# Event parameters do not have 'W' in sym.
|
||||||
if 'W' not in sym:
|
if 'W' not in sym:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue