summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/tree.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/django/utils/tree.py b/django/utils/tree.py
index a8d96893b0..9eb3aeb5d6 100644
--- a/django/utils/tree.py
+++ b/django/utils/tree.py
@@ -81,13 +81,6 @@ class Node(object):
"""
return other in self.children
- def _prepare_data(self, data):
- """
- A subclass hook for doing subclass specific transformations of the
- given data on combine() or add().
- """
- return data
-
def add(self, data, conn_type, squash=True):
"""
Combines this tree and the data represented by data using the
@@ -105,7 +98,6 @@ class Node(object):
"""
if data in self.children:
return data
- data = self._prepare_data(data)
if not squash:
self.children.append(data)
return data