Remove dead code.

Commit b73805e introduced lazy lists in assignments only. Commit 890e960 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:
Sei Lisa 2016-06-26 17:21:52 +02:00
parent 402791435f
commit 893bcf177b

View file

@ -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']