Commit 81e7611f authored by Thomas Vincent's avatar Thomas Vincent
Browse files

remove unused _items

parent 49d32f0a
......@@ -97,7 +97,6 @@ class RoiItemBase(qt.QObject):
self._manager = parent
self._plot = plot
self._handles = []
self._items = []
self._points = {}
self._kwargs = []
......@@ -135,8 +134,6 @@ class RoiItemBase(qt.QObject):
self._plot.removeMarker(item)
if shape:
self._plot.removeItem(self._name)
for item in self._items:
self._plot.removeItem(item)
def _interactiveModeChanged(self, source):
if source is not self or source is not self.parent():
......@@ -188,18 +185,6 @@ class RoiItemBase(qt.QObject):
except ValueError:
pass
def _registerItem(self, legend):
if legend in self._items:
raise ValueError('Item {0} is already registered.'
''.format(legend))
self._items.append(legend)
def _unregisterItem(self, legend):
try:
self._items.remove(legend)
except ValueError:
pass
def _connect(self):
if self._connected:
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment