Skip to content

Commit 8e4b0e2

Browse files
committed
Remove unused function
1 parent 29f50ac commit 8e4b0e2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/murfey/util/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99
import os
1010
import shutil
11-
from functools import lru_cache, partial
11+
from functools import partial
1212
from pathlib import Path
1313
from queue import Queue
1414
from threading import Thread
@@ -72,14 +72,6 @@ def secure_path(in_path: Path, keep_spaces: bool = False) -> Path:
7272
return Path("/".join(secured_parts))
7373

7474

75-
@lru_cache(maxsize=1)
76-
def get_machine_config(url: str, instrument_name: str = "", demo: bool = False) -> dict:
77-
_instrument_name: str | None = instrument_name or os.getenv("BEAMLINE")
78-
if not _instrument_name:
79-
return {}
80-
return requests.get(f"{url}/instruments/{_instrument_name}/machine").json()
81-
82-
8375
def _get_visit_list(api_base: ParseResult, instrument_name: str):
8476
get_visits_url = api_base._replace(
8577
path=f"/instruments/{instrument_name}/visits_raw"

0 commit comments

Comments
 (0)