Remove duplicated checking
This commit is contained in:
@@ -153,10 +153,6 @@ def inp_in_junction(section: list[str]) -> ChangeSet:
|
||||
|
||||
|
||||
def inp_in_junction_new(name: str, line: str) -> None:
|
||||
# skip comment
|
||||
if line.startswith(';'):
|
||||
return
|
||||
|
||||
tokens = line.split()
|
||||
|
||||
num = len(tokens)
|
||||
|
||||
@@ -146,10 +146,6 @@ def inp_in_reservoir(section: list[str]) -> ChangeSet:
|
||||
|
||||
|
||||
def inp_in_reservoir_new(name: str, line: str) -> None:
|
||||
# skip comment
|
||||
if line.startswith(';'):
|
||||
return
|
||||
|
||||
tokens = line.split()
|
||||
|
||||
num = len(tokens)
|
||||
|
||||
@@ -188,10 +188,6 @@ def inp_in_tank(section: list[str]) -> ChangeSet:
|
||||
|
||||
|
||||
def inp_in_tank_new(name: str, line: str) -> None:
|
||||
# skip comment
|
||||
if line.startswith(';'):
|
||||
return
|
||||
|
||||
tokens = line.split()
|
||||
|
||||
num = len(tokens)
|
||||
|
||||
Reference in New Issue
Block a user