Skip to content

Commit a468023

Browse files
committed
remove unused functions
1 parent 3f8cdd5 commit a468023

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

src/navigate/config/config.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
from pathlib import Path
3939
from os.path import isfile
4040
from multiprocessing.managers import ListProxy, DictProxy
41-
import inspect
4241

4342
# Third Party Imports
4443
import yaml
4544

4645
# Local Imports
47-
from navigate.tools.common_functions import build_ref_name, load_module_from_file
48-
from navigate.model.features import feature_related_functions
46+
from navigate.tools.common_functions import build_ref_name
4947

5048

5149
def get_navigate_path():
@@ -1099,22 +1097,3 @@ def verify_configuration(manager, configuration):
10991097
{"channels": {"count": channel_count}},
11001098
)
11011099

1102-
1103-
def set_feature_attributes(plugin_path):
1104-
"""Load feature module and set function attributes.
1105-
1106-
Parameters
1107-
----------
1108-
plugin_path : str
1109-
The path to the plugins folder.
1110-
"""
1111-
features_dir = os.path.join(plugin_path, "model", "features")
1112-
if os.path.exists(features_dir):
1113-
features = os.listdir(features_dir)
1114-
for feature in features:
1115-
feature_file = os.path.join(features_dir, feature)
1116-
if os.path.isfile(feature_file):
1117-
temp = load_module_from_file(feature, feature_file)
1118-
for c in dir(temp):
1119-
if inspect.isclass(getattr(temp, c)):
1120-
setattr(feature_related_functions, c, getattr(temp, c))

test/config/test_config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ def test_config_methods():
6565
"__spec__",
6666
"build_nested_dict",
6767
"build_ref_name",
68-
"feature_related_functions",
6968
"get_configuration_paths",
7069
"get_navigate_path",
71-
"inspect",
7270
"isfile",
7371
"load_configs",
74-
"load_module_from_file",
75-
"set_feature_attributes",
7672
"os",
7773
"platform",
7874
"shutil",

0 commit comments

Comments
 (0)