# HG changeset patch # User Jeff Hammel # Date 1352763606 0 # Node ID ce97a26e4c0351cb41c1a46ff8a002ab95e235df # Parent 71c36a7842d18ef9784e8ba359a3ef29bc93c5a2 remove legacy code diff -r 71c36a7842d1 -r ce97a26e4c03 dogdish/dispatcher.py --- 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: