summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-08 20:01:41 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-08 20:01:41 -0400
commitdbe540d899443c721f5c20e12ef15bc348569a6b (patch)
treecd33d5332f5a0831ae73216c95a1ecb78ec2ef20 /lib/sqlalchemy/orm/util.py
parenta087179ba9e588b3383f0861f389f9437ff1b979 (diff)
downloadsqlalchemy-dbe540d899443c721f5c20e12ef15bc348569a6b.tar.gz
- remove an unused function, hooray
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r--lib/sqlalchemy/orm/util.py14
1 files changed, 0 insertions, 14 deletions
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
-