diff dogdish/dispatcher.py @ 21:ce97a26e4c03 default tip

remove legacy code
author Jeff Hammel
date Mon, 12 Nov 2012 23:40:06 +0000
parents 71c36a7842d1
children
line wrap: on
line diff
--- a/dogdish/dispatcher.py	Mon Nov 12 23:27:09 2012 +0000
+++ b/dogdish/dispatcher.py	Mon Nov 12 23:40:06 2012 +0000
@@ -186,7 +186,7 @@
         """WSGI application"""
 
         request = Request(environ)
-        new = self.scan()
+        self.scan()
         for h in self.handlers:
             if h.match(request):
                 handler = h(self, request)
@@ -205,14 +205,6 @@
 
         # check for new updates
         contents = self.update_class.updates(self.directory)
-        new = contents.difference(self.updates.keys())
-        if not new:
-            # directory contents unchanged from cached values
-            # return False
-            # XXX: we can't rely on caching this, since in the case of a bad update,
-            # an earlier update will be promoted via 'touch'.
-            pass
-
         for update in contents:
             self.updates[update] = self.update_class(self.directory, update)
             if self.current_update: