Skip to content

Commit

Permalink
chore: rm redundant var declaration (#3478)
Browse files Browse the repository at this point in the history
it was apparently there as a type hint but it is no longer needed
  • Loading branch information
antazoey authored Jun 2, 2023
1 parent 0e20131 commit a71d604
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vyper/codegen/module.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# a contract.vy -- all functions and constructor

from typing import Any, List, Optional
from typing import Any, List

from vyper import ast as vy_ast
from vyper.codegen.core import shr
from vyper.codegen.function_definitions import generate_ir_for_function
from vyper.codegen.global_context import GlobalContext
Expand Down Expand Up @@ -141,8 +140,6 @@ def generate_ir_for_module(global_ctx: GlobalContext) -> tuple[IRnode, IRnode]:
# order functions so that each function comes after all of its callees
function_defs = _topsort(global_ctx.functions)

init_function: Optional[vy_ast.FunctionDef] = None

runtime_functions = [f for f in function_defs if not _is_constructor(f)]
init_function = next((f for f in function_defs if _is_constructor(f)), None)

Expand Down

0 comments on commit a71d604

Please sign in to comment.