summaryrefslogtreecommitdiff
path: root/morphlib/artifactcachereference.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-06-14 09:27:48 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-06-14 11:05:05 +0000
commit22b6a835d3645aacecc82ad522148bcba681ea78 (patch)
treefabee84e3389c0c99bbd007a7d3c50b944178b1e /morphlib/artifactcachereference.py
parent66aeb24c0c5f15ae340387c11a7850e001735e43 (diff)
downloadmorph-22b6a835d3645aacecc82ad522148bcba681ea78.tar.gz
ArtifactCacheReference: remove from_artifact
This convenience method is pointless, since it's trivial to make an ArtifactCacheReference from an Artifact with ref = ArtifactCacheReference(artifact.basename()) and it's actually shorter than ref = ArtifactCacheReference.from_artifact(artifact)
Diffstat (limited to 'morphlib/artifactcachereference.py')
-rw-r--r--morphlib/artifactcachereference.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/morphlib/artifactcachereference.py b/morphlib/artifactcachereference.py
index d4b239d5..169bf96d 100644
--- a/morphlib/artifactcachereference.py
+++ b/morphlib/artifactcachereference.py
@@ -35,7 +35,3 @@ class ArtifactCacheReference(object):
def metadata_basename(self, metadata_name):
return '%s.%s' % (self._basename, metadata_name)
-
- @classmethod
- def from_artifact(klass, artifact):
- return klass(artifact.basename())