1
0
mirror of https://github.com/django/django.git synced 2025-03-06 15:32:33 +00:00

Refs #33766 -- Removed unused Join.equals().

It's unused now that the specialized FilteredRelation.as_sql logic is
no more.
This commit is contained in:
Simon Charette 2023-04-21 01:57:30 -04:00 committed by Mariusz Felisiak
parent d660cee5bc
commit 1a13161eab

View File

@ -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