hints: remove unused context attribute and duplicate initialization
This commit is contained in:
parent
58ded41e5d
commit
cdcc9996a0
@ -62,7 +62,6 @@ class HintContext:
|
|||||||
"""Context namespace used for hinting.
|
"""Context namespace used for hinting.
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
frames: The QWebFrames to use.
|
|
||||||
all_elems: A list of all (elem, label) namedtuples ever created.
|
all_elems: A list of all (elem, label) namedtuples ever created.
|
||||||
elems: A mapping from key strings to (elem, label) namedtuples.
|
elems: A mapping from key strings to (elem, label) namedtuples.
|
||||||
May contain less elements than `all_elems` due to filtering.
|
May contain less elements than `all_elems` due to filtering.
|
||||||
@ -92,7 +91,6 @@ class HintContext:
|
|||||||
self.to_follow = None
|
self.to_follow = None
|
||||||
self.rapid = False
|
self.rapid = False
|
||||||
self.filterstr = None
|
self.filterstr = None
|
||||||
self.frames = []
|
|
||||||
self.args = []
|
self.args = []
|
||||||
self.tab = None
|
self.tab = None
|
||||||
self.group = None
|
self.group = None
|
||||||
@ -766,7 +764,6 @@ class HintManager(QObject):
|
|||||||
self._context.baseurl = tabbed_browser.current_url()
|
self._context.baseurl = tabbed_browser.current_url()
|
||||||
except qtutils.QtValueError:
|
except qtutils.QtValueError:
|
||||||
raise cmdexc.CommandError("No URL set for this page yet!")
|
raise cmdexc.CommandError("No URL set for this page yet!")
|
||||||
self._context.tab = tab
|
|
||||||
self._context.args = args
|
self._context.args = args
|
||||||
self._context.group = group
|
self._context.group = group
|
||||||
selector = webelem.SELECTORS[self._context.group]
|
selector = webelem.SELECTORS[self._context.group]
|
||||||
|
Loading…
Reference in New Issue
Block a user