Commit 64ad0b34 authored by Kevin Kandlbinder's avatar Kevin Kandlbinder
Browse files

Remove useless code

parent 4a294456
Pipeline #399423 passed with stage
in 5 minutes and 29 seconds
......@@ -91,7 +91,7 @@ class ApostropheTextView(Gtk.TextView):
self.gspell_view.basic_setup()
# Undo / redo
self.undo_redo = UndoRedoHandler(self)
self.undo_redo = UndoRedoHandler()
self.get_buffer().connect('begin-user-action',
self.undo_redo.on_begin_user_action)
self.get_buffer().connect('end-user-action',
......
......@@ -135,12 +135,11 @@ class UndoRedoHandler:
Methods can be called directly, as well as be used as signal callbacks."""
def __init__(self, text_view):
def __init__(self):
self.undo_stack = []
self.redo_stack = []
self.current_undo_group = None
self.undo_in_progress = False
self.text_view = text_view
def undo(self, text_view, _data=None):
"""Undo insertions or deletions. Undone actions are moved to redo stack.
......
......@@ -17,8 +17,7 @@ Manuel Genovés <manuel.genoves@gmail.com>
Gonçalo Silva <goncalossilva@gmail.com>
Thomas Lavend <lavendthomas@outlook.be>
Vova Kolobok
Kevin Kandlbinder <kevin@kevink.dev>
</property>
Kevin Kandlbinder &lt;kevin@kevink.dev&gt;</property>
<property name="translator_credits" translatable="yes" comments="Put your name in here, like this:&#10;Manuel Genovés &lt;manuel.genoves@gmail.com&gt;">translator-credits</property>
<property name="artists">Tobias Bernard &lt;hi@tobiasbernard.com&gt;</property>
<property name="logo_icon_name">@app-id@</property>
......
Supports Markdown
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