Index: src/splay-tree.h |
diff --git a/src/splay-tree.h b/src/splay-tree.h |
index e21e21612540fb19d33e1f3ee1ba2b4f9ef47dc7..eb2f1da63d612025789cde9a3c1e95fbd2ed655c 100644 |
--- a/src/splay-tree.h |
+++ b/src/splay-tree.h |
@@ -153,7 +153,8 @@ class SplayTree { |
}; |
template <class Callback> |
- void ForEach(Callback* callback); |
+ void ForEach(Callback* callback, |
+ AllocationPolicy allocator = AllocationPolicy()); |
protected: |
// Resets tree root. Existing nodes become unreachable. |
@@ -185,14 +186,6 @@ class SplayTree { |
DISALLOW_COPY_AND_ASSIGN(NodeToPairAdaptor); |
}; |
- class NodeDeleter BASE_EMBEDDED { |
- public: |
- NodeDeleter() { } |
- void Call(Node* node) { AllocationPolicy::Delete(node); } |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(NodeDeleter); |
- }; |
template <class Callback> |
void ForEachNode(Callback* callback, |