summaryrefslogtreecommitdiff
path: root/extractor/matchings_trie.cc
blob: 851d459652a290e26a41da696a3597157bdaa6d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "matchings_trie.h"

void MatchingsTrie::Reset() {
  // TODO(pauldb): This is probably memory leaking because of the suffix links.
  // Check if it's true and free the memory properly.
  root.reset(new TrieNode());
}

shared_ptr<TrieNode> MatchingsTrie::GetRoot() const {
  return root;
}