Commit 8090558b authored by Vincent Pelletier's avatar Vincent Pelletier

CMFActivity: Drop no-op registerActivityBuffer API.

parent a7257c64
......@@ -235,9 +235,6 @@ class Queue(object):
raise NotImplementedError
# Registration Management
def registerActivityBuffer(self, activity_buffer):
pass
def isMessageRegistered(self, activity_buffer, activity_tool, m):
# BBB: deprecated
message_list = activity_buffer.getMessageList(self)
......
......@@ -60,20 +60,6 @@ class ActivityBuffer(TM):
transaction.get().addBeforeCommitHook(self._prepare, self._prepare_args)
self._prepare_args = None
# Keeps a list of messages to add and remove
# at end of transaction
def _begin(self):
# LOG('ActivityBuffer', 0, '_begin %r' % (self,))
from ActivityTool import activity_dict
try:
# Reset registration for each transaction.
for activity in activity_dict.itervalues():
activity.registerActivityBuffer(self)
except:
LOG('ActivityBuffer', ERROR, "exception during _begin",
error=sys.exc_info())
raise
_abort = _finish = _clear
def _prepare(self, queued):
......
Markdown is supported
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