|
1 | 1 | import logging |
2 | | -from typing import Callable, Dict, Optional, Set, Type |
| 2 | +from typing import Callable, Dict, Type |
3 | 3 |
|
4 | 4 | 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 |
6 | 6 | 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 |
8 | 8 |
|
9 | 9 | import app.model as server_model |
10 | 10 |
|
@@ -207,27 +207,6 @@ class ServerStrictStrippedAASFromJsonDecoder(ServerStrictAASFromJsonDecoder, Ser |
207 | 207 | pass |
208 | 208 |
|
209 | 209 |
|
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 | | - |
231 | 210 | class ServerAASToJsonEncoder(AASToJsonEncoder): |
232 | 211 |
|
233 | 212 | @classmethod |
|
0 commit comments