summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-01 20:18:15 -0500
committerTim Graham <timograham@gmail.com>2015-02-01 21:37:25 -0500
commitf79ce63fdb6788c8b4857fece6c86de57fc129ee (patch)
treeef6f98f88f398bb76ceb49efee31c4b778b0cd80 /django/db/models/sql
parentc79faae761659d51d58782dbd2b8058fb4668cfa (diff)
Removed query.alias_diff()
This function is unused since 6fe2b001dba45134d7c10729c57959995e241a88
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/query.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 54ca929a85..6b50bb8bf6 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -2033,17 +2033,6 @@ def is_reverse_o2o(field):
return not hasattr(field, 'rel') and field.field.unique
-def alias_diff(refcounts_before, refcounts_after):
- """
- Given the before and after copies of refcounts works out which aliases
- have been added to the after copy.
- """
- # Use -1 as default value so that any join that is created, then trimmed
- # is seen as added.
- return set(t for t in refcounts_after
- if refcounts_after[t] > refcounts_before.get(t, -1))
-
-
class JoinPromoter(object):
"""
A class to abstract away join promotion problems for complex filter