aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-10 18:23:05 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-10 18:23:05 +0200
commita0a78c0be4f891de343232949e08004b77667959 (patch)
tree6fbeaf49f0df7bc6cf73d4ae3826a0016d4cbd1d
parentc2664e97590849f426ef7ea92a5508034ec41abd (diff)
downloadallocbench-a0a78c0be4f891de343232949e08004b77667959.tar.gz
allocbench-a0a78c0be4f891de343232949e08004b77667959.zip
[artifact.py] remove useless singleton design pattern
-rw-r--r--allocbench/artifact.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/allocbench/artifact.py b/allocbench/artifact.py
index 55daa3a..60b2ca0 100644
--- a/allocbench/artifact.py
+++ b/allocbench/artifact.py
@@ -33,13 +33,7 @@ ARTIFACT_STORE_DIR = os.path.join(ALLOCBENCHDIR, "cache")
class Artifact:
"""Base class for external ressources"""
- store = {}
-
def __init__(self, name):
- if name in Artifact.store:
- raise Exception(f'duplicate artifact "{name}"')
-
- Artifact.store[name] = self
self.name = name
self.basedir = os.path.join(ARTIFACT_STORE_DIR, name)