Changeset 2217

Show
Ignore:
Timestamp:
02/13/08 02:44:26 (3 months ago)
Author:
arj..@yirdis.nl
Message:

removed some unnecessary logging and "dead code"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/diagram/association.py

    r2200 r2217  
    6868    def setup_canvas(self): 
    6969        super(AssociationItem, self).setup_canvas() 
    70         self._head_end._canvas = self.canvas 
    71         self._tail_end._canvas = self.canvas 
    7270 
    7371    def teardown_canvas(self): 
    7472        super(AssociationItem, self).teardown_canvas() 
    75         del self._head_end._canvas 
    76         del self._tail_end._canvas 
    7773 
    7874    def save(self, save_func): 
  • gaphor/trunk/gaphor/diagram/diagramitem.py

    r2210 r2217  
    216216        Remove the item from the canvas and set subject to None. 
    217217        """ 
     218        if self.canvas: 
     219            self.canvas.remove(self) 
     220        self.subject = None 
    218221        super(DiagramItem, self).unlink() 
    219         self.subject = None 
    220         if self.canvas: 
    221             #try: 
    222             self.canvas.remove(self) 
    223             #except KeyError: 
    224             #    # Canvas was already removed 
    225             #    pass 
    226222 
    227223 
  • gaphor/trunk/gaphor/diagram/feature.py

    r2155 r2217  
    2525        self.height = 0 
    2626        self.text = '' 
    27         # Fool unlink code
     27        # Fool unlink code (attribute is not a gaphas.Item)
    2828        self.canvas = None 
    2929 
  • gaphor/trunk/gaphor/services/undomanager.py

    r2210 r2217  
    162162        """ 
    163163        if self._current_transaction: 
    164             log.debug('add_undo_action: %s %s' % (self._current_transaction, action)) 
     164            #log.debug('add_undo_action: %s %s' % (self._current_transaction, action)) 
    165165            self._current_transaction.add(action) 
    166166            self._app.handle(UndoManagerStateChanged(self)) 
     
    287287 
    288288    def _gaphas_undo_handler(self, event): 
    289         print 'Gaphas event:', event 
    290289        self.add_undo_action(lambda: state.saveapply(*event)); 
    291290