summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2023-04-21 01:57:30 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-24 08:32:49 +0200
commit1a13161eab2d040990734f80b3eedea354f6a4ba (patch)
treeefe5efba62a60eb6ec35ec705fd602e46ad616e3 /django
parentd660cee5bc68b597503c2a16f3d9928d52f93fb4 (diff)
downloaddjango-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.py7
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