From 78b32a89d87d7081a0a7998e804ff14e4c2a110f Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Mon, 16 Jun 2014 15:25:10 -0700 Subject: [PATCH] Get rid of _delegation_callback --- invirt-dns | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/invirt-dns b/invirt-dns index c0950de..60787a0 100755 --- a/invirt-dns +++ b/invirt-dns @@ -208,22 +208,9 @@ class DelegatingQuotingBindAuthority(authority.BindAuthority): name = name[name.find('.') + 1 :] deferredResult = authority.BindAuthority._lookup(self, name, cls, dns.NS, timeout) - #deferredResult.addCallback(self._delegation_callback) deferredResult.addErrback(self._delegation_errback, name, cls, timeout) return deferredResult - def _delegation_callback(self, result): - # If we found somewhere to delegate the query to, our _lookup() - # for the NS record resulted in it being in the 'results' section. - # We need to instead return that information in the 'authority' - # section to delegate, and return an empty 'results' section - # (because we didn't find the name we were asked about). We - # leave the 'additional' section as we received it because it - # may contain A records for the DNS server we're delegating to. - (nsResults, nsAuthority, nsAdditional) = result - deferredResult = defer.succeed(([], nsResults, nsAdditional)) - return deferredResult - if '__main__' == __name__: resolvers = [] try: -- 1.7.9.5