From 88b3e3b46e89100ded32618f9f41e5a077763294 Mon Sep 17 00:00:00 2001 From: Adam Chidlow Date: Mon, 25 Nov 2024 11:43:23 +0800 Subject: [PATCH] remove unused code --- src/puyapy/awst_build/arc4_utils.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/puyapy/awst_build/arc4_utils.py b/src/puyapy/awst_build/arc4_utils.py index 892d55d2f5..30f492aa5e 100644 --- a/src/puyapy/awst_build/arc4_utils.py +++ b/src/puyapy/awst_build/arc4_utils.py @@ -15,8 +15,6 @@ ARC4ABIMethodConfig, ARC4BareMethodConfig, ARC4CreateOption, - ARC4Struct, - ARC4StructField, OnCompletionAction, TransactionType, ) @@ -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]]: