diff --git a/gaphor/services/undomanager.py b/gaphor/services/undomanager.py index b718ee395..4131d90c2 100644 --- a/gaphor/services/undomanager.py +++ b/gaphor/services/undomanager.py @@ -153,9 +153,6 @@ class UndoManager(object): @component.adapter(IModelFactoryEvent) def reset(self, event=None): - - self.logger.debug('Handling IModelFactoryEvent') - self.clear_redo_stack() self.clear_undo_stack() self._action_executed() @@ -166,10 +163,6 @@ class UndoManager(object): """ Add an action to the current transaction """ - - self.logger.debug('Handling TransactionBegin event') - self.logger.debug('Current transaction is %s' % self._current_transaction) - assert not self._current_transaction self._current_transaction = ActionStack() @@ -187,10 +180,6 @@ class UndoManager(object): @component.adapter(TransactionCommit) def commit_transaction(self, event=None): - - self.logger.debug('Handling TransactionCommit event') - self.logger.debug('Current transaction is %s' % self._current_transaction) - assert self._current_transaction if self._current_transaction.can_execute(): @@ -211,10 +200,6 @@ class UndoManager(object): """ Roll back the transaction we're in. """ - - self.logger.debug('Handling TransactionRollback event') - self.logger.debug('Current transaction is %s' % self._current_transaction) - assert self._current_transaction # Store stacks @@ -309,9 +294,6 @@ class UndoManager(object): @component.adapter(ActionExecuted) def _action_executed(self, event=None): - - self.logger.debug('Handling ActionExecuted event') - self.action_group.get_action('edit-undo').set_sensitive(self.can_undo()) self.action_group.get_action('edit-redo').set_sensitive(self.can_redo()) @@ -359,11 +341,6 @@ class UndoManager(object): @component.adapter(ElementCreateEvent) def undo_create_event(self, event): - - self.logger.debug('Handling ElementCreateEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Service is %s' % event.service) - factory = event.service # A factory is not always present, e.g. for DiagramItems if not factory: @@ -380,11 +357,6 @@ class UndoManager(object): @component.adapter(IElementDeleteEvent) def undo_delete_event(self, event): - - self.logger.debug('Handling IElementDeleteEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Service is %s' % event.service) - factory = event.service # A factory is not always present, e.g. for DiagramItems if not factory: @@ -399,12 +371,6 @@ class UndoManager(object): @component.adapter(IAttributeChangeEvent) def undo_attribute_change_event(self, event): - - self.logger.debug('Handling IAttributeChangeEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Property is %s' % event.property) - self.logger.debug('Old value is %s' % event.old_value) - attribute = event.property element = event.element value = event.old_value @@ -417,12 +383,6 @@ class UndoManager(object): @component.adapter(AssociationSetEvent) def undo_association_set_event(self, event): - - self.logger.debug('Handling AssociationSetEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Property is %s' % event.property) - self.logger.debug('Old value is %s' % event.old_value) - association = event.property element = event.element value = event.old_value @@ -437,12 +397,6 @@ class UndoManager(object): @component.adapter(AssociationAddEvent) def undo_association_add_event(self, event): - - self.logger.debug('Handling AssociationAddEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Property is %s' % event.property) - self.logger.debug('New value is %s' % event.new_value) - association = event.property element = event.element value = event.new_value @@ -456,12 +410,6 @@ class UndoManager(object): @component.adapter(AssociationDeleteEvent) def undo_association_delete_event(self, event): - - self.logger.debug('Handling AssociationDeleteEvent event') - self.logger.debug('Element is %s' % event.element) - self.logger.debug('Property is %s' % event.property) - self.logger.debug('Old value is %s' % event.old_value) - association = event.property element = event.element value = event.old_value