diff options
author | Simon Charette <charette.s@gmail.com> | 2023-04-21 01:57:30 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-24 08:32:49 +0200 |
commit | 1a13161eab2d040990734f80b3eedea354f6a4ba (patch) | |
tree | efe5efba62a60eb6ec35ec705fd602e46ad616e3 /django | |
parent | d660cee5bc68b597503c2a16f3d9928d52f93fb4 (diff) | |
download | django-1a13161eab2d040990734f80b3eedea354f6a4ba.tar.gz |
Refs #33766 -- Removed unused Join.equals().
It's unused now that the specialized FilteredRelation.as_sql logic is
no more.
Diffstat (limited to 'django')
-rw-r--r-- | django/db/models/sql/datastructures.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/django/db/models/sql/datastructures.py b/django/db/models/sql/datastructures.py index a88bc09593..5eaa8c25f6 100644 --- a/django/db/models/sql/datastructures.py +++ b/django/db/models/sql/datastructures.py @@ -185,10 +185,6 @@ class Join: def __hash__(self): return hash(self.identity) - def equals(self, other): - # Ignore filtered_relation in equality check. - return self.identity[:-1] == other.identity[:-1] - def demote(self): new = self.relabeled_clone({}) new.join_type = INNER @@ -239,6 +235,3 @@ class BaseTable: def __hash__(self): return hash(self.identity) - - def equals(self, other): - return self.identity == other.identity |