summaryrefslogtreecommitdiff
path: root/morphlib/cachedrepo.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-08-08 09:06:50 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-08-14 13:28:49 +0000
commitb581801d265154ee94b1bc51eb986e4497b536e4 (patch)
tree819a86c29e764fc8cdcf6a412993c50f7a38da5b /morphlib/cachedrepo.py
parentb2786c73c0f4d4b76f824e309598ce57065e30ab (diff)
downloadmorph-b581801d265154ee94b1bc51eb986e4497b536e4.tar.gz
cachedrepo: Remove unused load_morphology method
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r--morphlib/cachedrepo.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py
index 996b42f7..88ceed48 100644
--- a/morphlib/cachedrepo.py
+++ b/morphlib/cachedrepo.py
@@ -195,15 +195,6 @@ class CachedRepo(object):
self._checkout_ref(ref, target_dir)
- def load_morphology(self, ref, name):
- '''Loads a morphology from a given ref'''
-
- if not morphlib.git.is_valid_sha1(ref):
- ref = self._rev_parse(ref)
- text = self.cat(ref, '%s.morph' % name)
- morphology = morphlib.morph2.Morphology(text)
- return morphology
-
def ls_tree(self, ref):
'''Return file names found in root tree. Does not recurse to subtrees.