From 4e6864b2fc94152c218505686deda9bacc55b101 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Wed, 15 Mar 2023 21:45:12 +0800 Subject: [PATCH] Remove duplicated checking --- api/s2_junctions.py | 4 ---- api/s3_reservoirs.py | 4 ---- api/s4_tanks.py | 4 ---- 3 files changed, 12 deletions(-) diff --git a/api/s2_junctions.py b/api/s2_junctions.py index d7b8489..1a250d5 100644 --- a/api/s2_junctions.py +++ b/api/s2_junctions.py @@ -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) diff --git a/api/s3_reservoirs.py b/api/s3_reservoirs.py index 53e988d..6a24b97 100644 --- a/api/s3_reservoirs.py +++ b/api/s3_reservoirs.py @@ -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) diff --git a/api/s4_tanks.py b/api/s4_tanks.py index 766c336..813bdd7 100644 --- a/api/s4_tanks.py +++ b/api/s4_tanks.py @@ -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)