Remove redundant load of segments by the lime layer.

This commit is contained in:
Mike Auty
2019-03-03 13:09:49 +00:00
parent 784336bb6e
commit ebadd4fbd6
+1 -2
View File
@@ -46,8 +46,7 @@ class LimeLayer(segmented.SegmentedLayer):
def __init__(self, context: interfaces.context.ContextInterface, config_path: str, name: str) -> None:
super().__init__(context, config_path, name)
# We must run this on creation in order to get the right min/maxaddr in case scanning is our first action
self._load_segments()
# The base class loads the segments on initialization, but otherwise this must to get the right min/max addresses
def _load_segments(self) -> None:
base_layer = self._context.memory[self._base_layer]