# HG changeset patch # User Jeff Hammel # Date 1349911753 25200 # Node ID 6e16197950b766183043441d92e433c8db3b83ec # Parent 4a5a4582be3ba03db3071cb56ac9dd83d8df87c7 remove unused code diff -r 4a5a4582be3b -r 6e16197950b7 dogdish/dispatcher.py --- a/dogdish/dispatcher.py Wed Oct 10 16:28:04 2012 -0700 +++ b/dogdish/dispatcher.py Wed Oct 10 16:29:13 2012 -0700 @@ -55,8 +55,6 @@ for key in self.defaults: setattr(self, key, kw.get(key, self.defaults[key])) self.handlers = [ Get ] - if self.app: - assert hasattr(self.app, '__call__') ### methods dealing with HTTP def __call__(self, environ, start_response): @@ -66,8 +64,6 @@ handler = h(request) break else: - if self.app: - return self.app(environ, start_response) handler = exc.HTTPNotFound res = handler() return res(environ, start_response)