summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2014-08-14 21:05:59 (GMT)
committerRichard Ipsum <richardipsum@fastmail.co.uk>2014-08-14 21:10:47 (GMT)
commit322371435ed1576505279d87fb7adeca524ef46b (patch)
treef887711bf4f8ceebbef5a79bd04e3e19ddf53145
parent00837372abc82209e1e71693b2e1eefc54718bbc (diff)
downloadmorph-322371435ed1576505279d87fb7adeca524ef46b.tar.gz
Remove dead functions
-rw-r--r--distbuild/serialise.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/distbuild/serialise.py b/distbuild/serialise.py
index 44d96ee..caeb1e0 100644
--- a/distbuild/serialise.py
+++ b/distbuild/serialise.py
@@ -37,16 +37,6 @@ def serialise_artifact(artifact):
for x in morphology_attributes:
result['__%s' % x] = getattr(morphology, x)
return result
-
- def encode_artifact(artifact):
- return {
- 'name': artifact.name,
- 'cache_id': artifact.cache_id,
- 'cache_key': artifact.cache_key,
- 'dependencies': artifact.dependencies,
- 'dependents': artifact.dependents,
- 'metadata_version': artifact.metadata_version,
- }
def encode_source(source):
source_dic = {
@@ -169,16 +159,6 @@ def deserialise_artifact(encoded):
del morphology['__%s' % x]
return morphology
- def unserialise_source_artifacts(source, artifacts_dict):
- '''Convert this dict into a list of artifacts'''
- return {a['name']: Artifact(source,
- a['name'],
- a['cache_id'],
- a['cache_key'],
- a['dependencies'],
- a['dependents'],
- a['metadata_version']) for a in artifacts_dict}
-
def unserialise_source(le_dict):
'''Convert a dict into a Source object.'''