Move __iter__ to AbstractHistory

This commit is contained in:
Florian Bruhin 2016-07-04 12:47:22 +02:00
parent 59c9ee88e5
commit aebc29337a
3 changed files with 1 additions and 7 deletions

View File

@ -330,7 +330,7 @@ class AbstractHistory:
self.history = None
def __iter__(self):
raise NotImplementedError
return iter(self.history.items())
def current_idx(self):
raise NotImplementedError

View File

@ -60,9 +60,6 @@ class WebEngineScroller(tab.AbstractScroller):
class WebEngineHistory(tab.AbstractHistory):
def __iter__(self):
return iter(self.history.items())
def current_idx(self):
return self.history.currentItemIndex()

View File

@ -368,9 +368,6 @@ class WebViewScroller(tab.AbstractScroller):
class WebViewHistory(tab.AbstractHistory):
def __iter__(self):
return iter(self.history.items())
def current_idx(self):
return self.history.currentItemIndex()