Commit c1fb0be3 authored by Stefan Behnel's avatar Stefan Behnel

Remove useless code.

parent f744dd2e
...@@ -3293,10 +3293,6 @@ class IndexNode(_IndexingBaseNode): ...@@ -3293,10 +3293,6 @@ class IndexNode(_IndexingBaseNode):
is_subscript = True is_subscript = True
is_fused_index = False is_fused_index = False
def __init__(self, pos, index, **kw):
ExprNode.__init__(self, pos, index=index, **kw)
self._index = index
def calculate_constant_result(self): def calculate_constant_result(self):
self.constant_result = self.base.constant_result[self.index.constant_result] self.constant_result = self.base.constant_result[self.index.constant_result]
...@@ -4613,7 +4609,7 @@ class SliceIndexNode(ExprNode): ...@@ -4613,7 +4609,7 @@ class SliceIndexNode(ExprNode):
start=self.start or none_node, start=self.start or none_node,
stop=self.stop or none_node, stop=self.stop or none_node,
step=none_node) step=none_node)
index_node = IndexNode(self.pos, index, base=self.base) index_node = IndexNode(self.pos, index=index, base=self.base)
return index_node.analyse_base_and_index_types( return index_node.analyse_base_and_index_types(
env, getting=getting, setting=not getting, env, getting=getting, setting=not getting,
analyse_base=False) analyse_base=False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment