diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-01 20:18:15 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-01 21:38:34 -0500 |
| commit | 3cd8f51f21878d2fcd8361adcb0d88d152e778ef (patch) | |
| tree | dd4beca879b9d73ddbe1f3f1dfb0001ac9dbd60c | |
| parent | 6d0538bd8c38e83a605c987a40081149b254b802 (diff) | |
[1.8.x] Removed query.alias_diff()
This function is unused since 6fe2b001dba45134d7c10729c57959995e241a88
Backport of f79ce63fdb6788c8b4857fece6c86de57fc129ee from master
| -rw-r--r-- | django/db/models/sql/query.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 6865624ec3..4fb22149d0 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -2050,17 +2050,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 |
