Skip to content

Commit

Permalink
Remove already-implemented TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pinusc committed Jan 25, 2024
1 parent fae41c6 commit afa2efb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions qutebrowser/mainwindow/treetabbedbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ def _add_undo_entry(self, tab, idx, new_undo):
This function was removed in tabbedbrowser, but it is still useful here because
the mechanism is quite a bit more complex
"""
# TODO see if it's possible to remove duplicate code from
# super()._add_undo_entry
node = tab.node
if not node.collapsed:
entry = _TreeUndoEntry.from_node(node, 0)
Expand All @@ -162,10 +160,6 @@ def _add_undo_entry(self, tab, idx, new_undo):

def undo(self, depth=1):
"""Undo removing of a tab or tabs."""
# TODO find a way to remove dupe code
# probably by getting entries from undo stack, THEN calling super
# then post-processing the entries

# save entries before super().undo() pops them
entries = list(self.undo_stack[-depth])
new_tabs = super().undo(depth)
Expand Down

0 comments on commit afa2efb

Please sign in to comment.