Skip to content

Commit

Permalink
remove dead argument
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed May 25, 2024
1 parent 4fb1653 commit cdcfb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vyper/semantics/analysis/data_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, max_slot: int = 2**256, starting_slot: int = 0):
self._slot = starting_slot
self._max_slot = max_slot

def allocate_slot(self, n, var_name, node=None):
def allocate_slot(self, n, node=None):
ret = self._slot
if self._slot + n >= self._max_slot:
raise StorageLayoutException(
Expand All @@ -74,7 +74,7 @@ def allocate_slot(self, n, var_name, node=None):
return ret

def allocate_global_nonreentrancy_slot(self):
slot = self.allocate_slot(NONREENTRANT_KEY_SIZE, GLOBAL_NONREENTRANT_KEY)
slot = self.allocate_slot(NONREENTRANT_KEY_SIZE)
assert slot == self._starting_slot
return slot

Expand Down Expand Up @@ -320,7 +320,7 @@ def _allocate_layout_r(
# CMC 2021-07-23 note that HashMaps get assigned a slot here
# using the same allocator (even though there is not really
# any risk of physical overlap)
offset = allocator.allocate_slot(size, node.target.id, node)
offset = allocator.allocate_slot(size, node)
varinfo.set_position(VarOffset(offset))


Expand Down

0 comments on commit cdcfb81

Please sign in to comment.