hooks/workflow.py
changeset 3654 e4bed64e0ad7
parent 3629 559cad62c786
child 3674 387d51af966d
--- a/hooks/workflow.py	Tue Oct 13 12:04:10 2009 +0200
+++ b/hooks/workflow.py	Tue Oct 13 12:04:36 2009 +0200
@@ -337,15 +337,3 @@
         if typewf is not None:
             _WorkflowChangedOp(self._cw, eid=self.eidfrom, wfeid=typewf.eid)
 
-
-
-class DelWorkflowHook(WorkflowHook):
-    __regid__ = 'wfdel'
-    __select__ = WorkflowHook.__select__ & entity_implements('Workflow')
-    events = ('after_delete_entity',)
-
-    def __call__(self):
-        # cleanup unused state and transition
-        self._cw.execute('DELETE State X WHERE NOT X state_of Y')
-        self._cw.execute('DELETE Transition X WHERE NOT X transition_of Y')
-