Commits

Jason Pellerin committed 56980a7

Removed unused code

Comments (0)

Files changed (1)

             setattr(self.__class__, key, subs)
         return getattr(self, key)
 
-    def _findall(self, element, child):
-        # Sometimes you need to be qualified, sometimes not
-        check_unqual = True
-        for n in element.findall('./%s%s' % (self.qns, child.name)):
-            check_unqual = False
-            yield n
-        if check_unqual:
-            for n in element.findall("./%s" % child.name):
-                yield n
-
     def _items(self):
         items = []
         for a in self._attributes + self._children:
         self._lock.acquire()
         try:
             self._typemap = self._typemap.copy()
-            # self._process_namespaces()
         finally:
             self._lock.release()
 
         self._lock.acquire()
         try:
             self._build(client)
-            # self._process_methods(client)
             return client
         finally:
             self._lock.release()
         self._make_class(
             client, t, name=name, force_name=force_name, parent=parent)
 
-    def _process_namespaces(self):
-        self.nsmap = SOAPNS.copy()
-        #self.nsmap.update(self.wsdl.nsmap)
-        if None in self.nsmap:
-            # FIXME obviously don't just use "t"
-            self.nsmap['t'] = self.nsmap.pop(None)
-        tns = self.wsdl.get('targetNamespace', None)
-        backmap = dict(zip(self.nsmap.values(), self.nsmap.keys()))
-        self._tns = backmap[tns]
-        self._xsd = backmap['http://www.w3.org/2001/XMLSchema']
-        self._soap_ns = backmap['http://schemas.xmlsoap.org/wsdl/soap/']
-        self._soap12_ns = backmap['http://schemas.xmlsoap.org/wsdl/soap12/']
-        self._wsdl_ns = backmap['http://schemas.xmlsoap.org/wsdl/']
-
     def _resolve_refs(self):
         # print "refs to resolve", self._refs
         for client_type, name in self._refs: