From 4b7ac0e2991b3c393f618bc193ce18b175e154d7 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 24 Mar 2020 00:29:59 +0100 Subject: [PATCH] remove unused specials --- owrx/property/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/owrx/property/__init__.py b/owrx/property/__init__.py index c3c1ec9..486b9fe 100644 --- a/owrx/property/__init__.py +++ b/owrx/property/__init__.py @@ -75,17 +75,9 @@ class PropertyManager(ABC): class PropertyLayer(PropertyManager): - def __init__(self, properties=None): + def __init__(self): super().__init__() self.properties = {} - if properties is not None: - for (name, prop) in properties.items(): - self._add(name, prop) - - def _add(self, name, prop): - self.properties[name] = prop - self._fireCallbacks(name, prop.getValue()) - return self def __contains__(self, name): return name in self.properties