From 1a13161eab2d040990734f80b3eedea354f6a4ba Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Fri, 21 Apr 2023 01:57:30 -0400 Subject: [PATCH] Refs #33766 -- Removed unused Join.equals(). It's unused now that the specialized FilteredRelation.as_sql logic is no more. --- django/db/models/sql/datastructures.py | 7 ------- 1 file changed, 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