Remove a no longer used function, so it doesn't get stuck in the API forever.

This commit is contained in:
Mike Auty
2017-11-05 15:28:38 +00:00
parent 671f65ed56
commit f6ac9c8367
-22
View File
@@ -89,28 +89,6 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
# Inherit
super().__init__(context, config_path, name, native_types or self._delegate.natives)
@classmethod
def open(cls, context, config_path, name, relative_isf, native_types = None):
"""Constructs an IntermediateSymbolTable based on a relative path rather than a full URL
This will attempt to load .json and .json.xz files
"""
search_paths = constants.SYMBOL_BASEPATHS
isf_url = None
for path in search_paths:
# Favour specific name, over uncompressed JSON (user-editable), over compressed JSON over uncompressed files
for extension in ['', '.json', '.json.xz']:
test = os.path.join(path, relative_isf + extension)
if os.path.exists(test):
isf_url = pathlib.Path(test).as_uri()
break
if isf_url:
break
else:
raise FileNotFoundError(
"ISF path fragment {} could not be found in standard search paths".format(relative_isf))
return cls(context, config_path, name, isf_url, native_types)
def _closest_version(self, version, versions):
"""Determines the highest suitable handler for specified version format