summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2021-09-20 23:22:17 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-27 07:55:09 +0200
commit4f8bc75bc310a6a206d2d1b9550d3df313eb63eb (patch)
treeb083346535acb94c7e18b2b6cb3dc94a3ab640bb /django/db/models/sql
parent769d7cce4aedfcbba59f1b68577225d07701c206 (diff)
Removed obsolete docstring from WhereNode.clone().
Node.subtree_parents was removed in d3f00bd5706b35961390d3814dd7e322ead3a9a3. That commit also added Q.clone() which was identical to WhereNode.clone(), but lacked the docstring. Q.clone() was later removed in b454e2cbc95eb26fa0c32b54c53ae24fc40e8c02.
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/where.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py
index 8e3ad74d65..dbfd9a02a4 100644
--- a/django/db/models/sql/where.py
+++ b/django/db/models/sql/where.py
@@ -171,11 +171,6 @@ class WhereNode(tree.Node):
self.children[pos] = child.relabeled_clone(change_map)
def clone(self):
- """
- Create a clone of the tree. Must only be called on root nodes (nodes
- with empty subtree_parents). Childs must be either (Constraint, lookup,
- value) tuples, or objects supporting .clone().
- """
clone = self.__class__._new_instance(
children=None,
connector=self.connector,