Skip to content

Commit

Permalink
remove unnecessary phonies and initializes
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Dec 15, 2024
1 parent b41bc28 commit 2bcba89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
4 changes: 1 addition & 3 deletions tests/functional/syntax/modules/test_initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,6 @@ def test_uses_skip_import(make_input_bundle):
lib2 = """
import lib1
phony: uint32
@internal
def foo():
pass
Expand All @@ -847,7 +845,7 @@ def foo():
import lib1
import lib2
initializes: lib2
uses: lib2
@external
def foo(new_value: uint256):
Expand Down
11 changes: 0 additions & 11 deletions tests/unit/compiler/test_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ def bar(x: {type}):

def test_exports_abi(make_input_bundle):
lib1 = """
phony: uint32
@external
def foo():
pass
Expand All @@ -232,8 +230,6 @@ def bar():
main = """
import lib1
initializes: lib1
exports: lib1.foo
"""
input_bundle = make_input_bundle({"lib1.vy": lib1})
Expand Down Expand Up @@ -363,8 +359,6 @@ def __init__():
def test_event_export_from_function_export(make_input_bundle):
# test events used in exported functions are exported
lib1 = """
phony: uint32
event MyEvent:
pass
Expand All @@ -375,8 +369,6 @@ def foo():
main = """
import lib1
initializes: lib1
exports: lib1.foo
"""
input_bundle = make_input_bundle({"lib1.vy": lib1})
Expand All @@ -400,8 +392,6 @@ def foo():
def test_event_export_unused_function(make_input_bundle):
# test events in unused functions are not exported
lib1 = """
phony: uint32
event MyEvent:
pass
Expand All @@ -411,7 +401,6 @@ def foo():
"""
main = """
import lib1
initializes: lib1
# not exported/reachable from selector table
@internal
Expand Down

0 comments on commit 2bcba89

Please sign in to comment.