From 322371435ed1576505279d87fb7adeca524ef46b Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Thu, 14 Aug 2014 22:05:59 +0100 Subject: Remove dead functions --- distbuild/serialise.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/distbuild/serialise.py b/distbuild/serialise.py index 44d96eee..caeb1e08 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.''' -- cgit v1.2.1