diff options
Diffstat (limited to 'base/mem_trie.hpp')
-rw-r--r-- | base/mem_trie.hpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/base/mem_trie.hpp b/base/mem_trie.hpp index 354675663d..fdd35af365 100644 --- a/base/mem_trie.hpp +++ b/base/mem_trie.hpp @@ -59,16 +59,6 @@ public: ForEachInNode(*root, prefix, std::forward<ToDo>(toDo)); } - // Calls |toDo| for each value in the node that is reachable - // by |prefix| from the trie root. Does nothing if such node does - // not exist. - template <typename ToDo> - void ForEachValueInNode(String const & prefix, ToDo && toDo) const - { - if (auto const * root = MoveTo(prefix)) - ForEachValueInNode(*root, std::forward<ToDo>(toDo)); - } - // Calls |toDo| for each key-value pair in a subtree that is // reachable by |prefix| from the trie root. Does nothing if such // subtree does not exist. @@ -136,14 +126,6 @@ private: toDo(prefix, value); } - // Calls |toDo| for each value in |node|. - template <typename ToDo> - void ForEachValueInNode(Node const & node, ToDo && toDo) const - { - for (auto const & value : node.m_values) - toDo(value); - } - // Calls |toDo| for each key-value pair in subtree where |node| is a // root of the subtree. |prefix| is a path from the trie root to the // |node|. |