]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- remove an unused function, hooray
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Aug 2012 00:01:41 +0000 (20:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Aug 2012 00:01:41 +0000 (20:01 -0400)
lib/sqlalchemy/orm/util.py

index 5f6c8d4a0d4a568f50bc9a183e386ae9ad3527f0..a273d14060414d9821f4a208798d647680746889 100644 (file)
@@ -1105,17 +1105,3 @@ def attribute_str(instance, attribute):
 def state_attribute_str(state, attribute):
     return state_str(state) + "." + attribute
 
-def identity_equal(a, b):
-    if a is b:
-        return True
-    if a is None or b is None:
-        return False
-    try:
-        state_a = attributes.instance_state(a)
-        state_b = attributes.instance_state(b)
-    except exc.NO_STATE:
-        return False
-    if state_a.key is None or state_b.key is None:
-        return False
-    return state_a.key == state_b.key
-