Skip to content

Commit

Permalink
remove dead function
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 27, 2024
1 parent 48db56c commit ebb84db
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions vyper/builtins/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,21 +839,6 @@ class ECMul(_ECArith):
_precompile = 0x7


def _generic_element_getter(loc):
def f(index):
scale = loc.word_scale
# Indexing is done by words
# - add 'scale' to skip the length slot
# - for byte-addressable locations multiply by 32
# - for word-addressable locations multiply by 1 which will be optimized out
return IRnode.from_list(
[loc.load_op, ["add", "_sub", ["add", scale, ["mul", scale, index]]]]
# [loc.load_op, add_ofst("_sub", ["add", scale, ["mul", scale, index]])]
)

return f


class Extract32(BuiltinFunctionT):
_id = "extract32"
_inputs = [("b", BytesT.any()), ("start", IntegerT.unsigneds())]
Expand Down

0 comments on commit ebb84db

Please sign in to comment.