changeset 5:6e16197950b7

remove unused code
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 10 Oct 2012 16:29:13 -0700
parents 4a5a4582be3b
children 0a7bf7e70888
files dogdish/dispatcher.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)