From: Mike Bayer Date: Thu, 9 Aug 2012 00:01:41 +0000 (-0400) Subject: - remove an unused function, hooray X-Git-Tag: rel_0_8_0b1~275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbe540d899443c721f5c20e12ef15bc348569a6b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - remove an unused function, hooray --- diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 5f6c8d4a0d..a273d14060 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -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 -