Remove unused event code
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 4 Feb 2014 19:15:00 +0000 (19:15 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 4 Feb 2014 19:15:00 +0000 (19:15 +0000)
* lib/mudpy/misc.py: Event elements weren't fully implemented, so rip
out the dead code in preparation for a different implementation.

lib/mudpy/misc.py

index 059e1be..a463653 100644 (file)
@@ -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()