Skip to content

Commit 87f8150

Browse files
committed
Remove unused read_server_aas_json_file_into and its imports
1 parent dd19ad8 commit 87f8150

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

server/app/adapter/jsonization.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import logging
2-
from typing import Callable, Dict, Optional, Set, Type
2+
from typing import Callable, Dict, Type
33

44
from basyx.aas import model
5-
from basyx.aas.adapter._generic import ASSET_KIND, ASSET_KIND_INVERSE, JSON_AAS_TOP_LEVEL_KEYS_TO_TYPES, PathOrIO
5+
from basyx.aas.adapter._generic import ASSET_KIND, ASSET_KIND_INVERSE, JSON_AAS_TOP_LEVEL_KEYS_TO_TYPES
66
from basyx.aas.adapter.json import AASToJsonEncoder
7-
from basyx.aas.adapter.json.json_deserialization import AASFromJsonDecoder, _get_ts, read_aas_json_file_into
7+
from basyx.aas.adapter.json.json_deserialization import AASFromJsonDecoder, _get_ts
88

99
import app.model as server_model
1010

@@ -207,27 +207,6 @@ class ServerStrictStrippedAASFromJsonDecoder(ServerStrictAASFromJsonDecoder, Ser
207207
pass
208208

209209

210-
def read_server_aas_json_file_into(
211-
object_store: model.AbstractObjectStore,
212-
file: PathOrIO,
213-
replace_existing: bool = False,
214-
ignore_existing: bool = False,
215-
failsafe: bool = True,
216-
stripped: bool = False,
217-
decoder: Optional[Type[AASFromJsonDecoder]] = None,
218-
) -> Set[model.Identifier]:
219-
return read_aas_json_file_into(
220-
object_store=object_store,
221-
file=file,
222-
replace_existing=replace_existing,
223-
ignore_existing=ignore_existing,
224-
failsafe=failsafe,
225-
stripped=stripped,
226-
decoder=decoder,
227-
keys_to_types=JSON_SERVER_AAS_TOP_LEVEL_KEYS_TO_TYPES,
228-
)
229-
230-
231210
class ServerAASToJsonEncoder(AASToJsonEncoder):
232211

233212
@classmethod

0 commit comments

Comments
 (0)