diff --git a/src/python/jw/pkg/App.py b/src/python/jw/pkg/App.py index d55ab50e..03fb3f7b 100644 --- a/src/python/jw/pkg/App.py +++ b/src/python/jw/pkg/App.py @@ -526,23 +526,6 @@ class App(Base): def strip_module_from_spec(self, mod): return re.sub(r'-dev$|-devel$|-run$', '', re.split('([=><]+)', mod)[0].strip()) - @cache - def get_section(self, path: str, section: str) -> str: - ret = '' - pat = '[' + section + ']' - in_section = False - file = open(path) - for line in file: - if line.rstrip() == pat: - in_section = True - continue - if in_section: - if len(line) and line[0] == '[': - break - ret += line - file.close() - return ret.rstrip() - @cache def get_value(self, project: str, section: str, key: str) -> str | None: ret: str | None