From: Jeremy Stanley Date: Tue, 4 Feb 2014 19:15:00 +0000 (+0000) Subject: Remove unused event code X-Git-Tag: 0.0.1~256 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=f9c4c6c9f4c7f81d4d58fba30aa1db22feb65a77;p=mudpy.git Remove unused event code * lib/mudpy/misc.py: Event elements weren't fully implemented, so rip out the dead code in preparation for a different implementation. --- diff --git a/lib/mudpy/misc.py b/lib/mudpy/misc.py index 059e1be..a463653 100644 --- a/lib/mudpy/misc.py +++ b/lib/mudpy/misc.py @@ -217,16 +217,6 @@ class Element: newlist.append(value) self.set(facet, newlist) - def new_event(self, action, when=None): - """Create, attach and enqueue an event element.""" - - # if when isn't specified, that means now - if not when: - when = self.universe.get_time() - - # events are elements themselves - event = Element("event:" + self.key + ":" + counter) - def send( self, message, @@ -432,8 +422,6 @@ class Universe: self.contents = {} self.default_origins = {} self.loglines = [] - self.pending_events_long = {} - self.pending_events_short = {} self.private_files = [] self.reload_flag = False self.startdir = os.getcwd()