mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Remove dead code.
Commitb73805e
introduced lazy lists in assignments only. Commit890e960
generalized it, allowing any identifier to be followed by brackets, removing the need for assignment-specific treatment. However, we forgot to remove the assignment-specific code parsing, so do it now.
This commit is contained in:
parent
402791435f
commit
893bcf177b
1 changed files with 0 additions and 13 deletions
|
@ -864,19 +864,6 @@ list lazy_list_set(list L, integer i, list v)
|
|||
if AllowAssignment and (tok0 in self.assignment_toks
|
||||
or self.extendedassignment
|
||||
and tok0 in self.extassignment_toks):
|
||||
if tok0 == '[':
|
||||
if lvalue['nt'] != 'IDENT':
|
||||
raise EParseSyntax(self)
|
||||
if lvalue['t'] != 'list':
|
||||
raise EParseTypeMismatch(self)
|
||||
self.NextToken()
|
||||
idxexpr = self.Parse_expression()
|
||||
if idxexpr['t'] != 'integer':
|
||||
raise EParseTypeMismatch(self)
|
||||
self.expect(']')
|
||||
self.NextToken()
|
||||
self.expect('=')
|
||||
|
||||
self.NextToken()
|
||||
expr = self.Parse_expression()
|
||||
rtyp = expr['t']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue