From 4e8a8bd798c36a693d4e70cf2699634b47316971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Feb 2014 00:25:48 +0100 Subject: [PATCH] Remove unused view cancel --- tryton/gui/window/view_form/view/calendar_.py | 3 --- tryton/gui/window/view_form/view/form.py | 5 ----- tryton/gui/window/view_form/view/form_gtk/interface.py | 3 --- tryton/gui/window/view_form/view/graph.py | 3 --- tryton/gui/window/view_form/view/list.py | 6 ------ 5 files changed, 20 deletions(-) diff --git a/tryton/gui/window/view_form/view/calendar_.py b/tryton/gui/window/view_form/view/calendar_.py index ec56ba2b60..93d4c746a0 100644 --- a/tryton/gui/window/view_form/view/calendar_.py +++ b/tryton/gui/window/view_form/view/calendar_.py @@ -47,9 +47,6 @@ class ViewCalendar(ParserView): # No need to load any record as nothing will be shown return [('id', '=', -1)] - def cancel(self): - pass - def set_value(self): pass diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index e86465b08b..1b2102e5b8 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -63,11 +63,6 @@ class ViewForm(ParserView): widget.destroy() self.widget.destroy() - def cancel(self): - for widgets in self.widgets.itervalues(): - for widget in widgets: - widget.cancel() - def set_value(self, focused_widget=False): record = self.screen.current_record if record: diff --git a/tryton/gui/window/view_form/view/form_gtk/interface.py b/tryton/gui/window/view_form/view/form_gtk/interface.py index 5604e17624..909f44930f 100644 --- a/tryton/gui/window/view_form/view/form_gtk/interface.py +++ b/tryton/gui/window/view_form/view/form_gtk/interface.py @@ -163,9 +163,6 @@ class WidgetInterface(object): def set_value(self, record, field): pass - def cancel(self): - pass - class TranslateDialog(NoModal): diff --git a/tryton/gui/window/view_form/view/graph.py b/tryton/gui/window/view_form/view/graph.py index 23c241a289..850d608ff6 100644 --- a/tryton/gui/window/view_form/view/graph.py +++ b/tryton/gui/window/view_form/view/graph.py @@ -22,9 +22,6 @@ class ViewGraph(ParserView): self.widgets[widget].destroy() del self.widgets[widget] - def cancel(self): - pass - def set_value(self): pass diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index f874bb6eef..1a99bb03ee 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -61,9 +61,6 @@ class AdaptModelGroup(gtk.GenericTreeModel): iter_ = self.get_iter(path) self.row_has_child_toggled(path, iter_) - def cancel(self): - pass - def removed(self, group, record): if (group is self.group and (record.group is self.group @@ -692,9 +689,6 @@ class ViewList(ParserView): self.store.removed(group, signal[1]) self.display() - def cancel(self): - pass - def __str__(self): return 'ViewList (%d)' % id(self)