Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
achidlow committed Nov 25, 2024
1 parent 6f83229 commit 88b3e3b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/puyapy/awst_build/arc4_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
ARC4ABIMethodConfig,
ARC4BareMethodConfig,
ARC4CreateOption,
ARC4Struct,
ARC4StructField,
OnCompletionAction,
TransactionType,
)
Expand Down Expand Up @@ -303,20 +301,6 @@ def visit_dict_expr(self, o: mypy.nodes.DictExpr) -> dict[object, object]:
return {key.accept(self) if key else None: value.accept(self) for key, value in o.items}


def _pytype_to_struct_def(typ: pytypes.StructType) -> ARC4Struct:
return ARC4Struct(
fullname=typ.name,
fields=[
ARC4StructField(
name=n,
type=pytype_to_arc4(t),
struct=t.name if pytypes.ARC4StructBaseType in t.mro else None,
)
for n, t in typ.fields.items()
],
)


def _get_func_types(
context: ASTConversionModuleContext, func_def: mypy.nodes.FuncDef, location: SourceLocation
) -> tuple[pytypes.FuncType, dict[str, pytypes.PyType]]:
Expand Down

0 comments on commit 88b3e3b

Please sign in to comment.