summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2015-02-27 15:48:51 (GMT)
committerJavier Jardón <javier.jardon@codethink.co.uk>2015-02-27 18:42:52 (GMT)
commit6b291f5e9027a1707a1525bf1fea6efa159b14f3 (patch)
treeca00965c576d1c1e0b780d6e9fd101d70c99cb84
parentea2c67c0da04a7add7d27370202c707c2cce4ffc (diff)
downloadmorph-6b291f5e9027a1707a1525bf1fea6efa159b14f3.tar.gz
morphlib/sourceresolver.py: Remove not used functions
_get_morphology_from_definitions() and _get_morphology_from_repo()
-rw-r--r--morphlib/sourceresolver.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/morphlib/sourceresolver.py b/morphlib/sourceresolver.py
index 5be373a..f571d76 100644
--- a/morphlib/sourceresolver.py
+++ b/morphlib/sourceresolver.py
@@ -220,14 +220,6 @@ class SourceResolver(object):
else:
return None
- def _get_morphology_from_definitions(self, loader,
- filename): # pragma: no cover
- if os.path.exists(filename):
- text = self._get_file_contents_from_definitions(filename)
- return self.load_from_string(text, filename=filename)
- else:
- return None
-
def _get_file_contents_from_repo(self, reponame,
sha1, filename): # pragma: no cover
if self.lrc.has_repo(reponame):
@@ -253,14 +245,6 @@ class SourceResolver(object):
return text
- def _get_morphology_from_repo(self, loader, reponame, sha1, filename):
- text = self._get_file_contents_from_repo(self, reponame, sha1, filename)
-
- if file not None:
- morph = loader.load_from_string(text)
-
- return morph
-
def _get_file_contents(self, reponame, sha1, filename): # pragma: no cover
'''Read the file at the specified location.