]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove double methods
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2013 23:48:49 +0000 (19:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2013 23:48:49 +0000 (19:48 -0400)
lib/sqlalchemy/orm/util.py

index 617ef6085aa2ebcfd557472d85695819e55a5a0c..ae1ca2013ff888cc8f77e09c623204948bfe56a5 100644 (file)
@@ -692,25 +692,6 @@ class AliasedInsp(_InspectionAttr):
         else:
             assert False, "mapper %s doesn't correspond to %s" % (mapper, self)
 
-    def _adapt_element(self, elem):
-        return self._adapter.traverse(elem).\
-                    _annotate({
-                        'parententity': self.entity,
-                        'parentmapper': self.mapper}
-                    )
-
-    def _adapt_prop(self, existing, key):
-        comparator = existing.comparator.adapt_to_entity(self)
-        queryattr = attributes.QueryableAttribute(
-                                self.entity, key,
-                                impl=existing.impl,
-                                parententity=self,
-                                comparator=comparator)
-        setattr(self.entity, key, queryattr)
-        return queryattr
-
-
-
     def __repr__(self):
         return '<AliasedInsp at 0x%x; %s>' % (
             id(self), self.class_.__name__)