From dbe540d899443c721f5c20e12ef15bc348569a6b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 8 Aug 2012 20:01:41 -0400 Subject: - remove an unused function, hooray --- lib/sqlalchemy/orm/util.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/sqlalchemy/orm/util.py') diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 5f6c8d4a0..a273d1406 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 - -- cgit v1.2.1