Skip to content

Commit 404543f

Browse files
committed
??? remove not needed code
1 parent d001b83 commit 404543f

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,17 +1213,6 @@ def _prepare_input_data(
12131213
Convert raw input to a structured dictionary {'key1': 'value1', 'key2': 'value2'}.
12141214
"""
12151215

1216-
# TODO: where used?
1217-
def prepare_str(str_in: str) -> dict[str, str]:
1218-
str_in = str_in.replace(" ", "")
1219-
key_val_list: list[str] = str_in.split("=")
1220-
if len(key_val_list) != 2:
1221-
raise ModelicaSystemError(f"Invalid 'key=value' pair: {str_in}")
1222-
1223-
input_data_from_str: dict[str, str] = {key_val_list[0]: key_val_list[1]}
1224-
1225-
return input_data_from_str
1226-
12271216
input_data: dict[str, str] = {}
12281217

12291218
if len(input_kwargs):

0 commit comments

Comments
 (0)