Remove unused parameter to LexConflictManager

This commit is contained in:
Max Brunsfeld 2015-12-17 15:45:47 -08:00
parent a8d2585330
commit f065eb0480
4 changed files with 1 additions and 14 deletions

View file

@ -41,7 +41,6 @@ class LexTableBuilder {
public:
LexTableBuilder(ParseTable *parse_table, const LexicalGrammar &lex_grammar)
: lex_grammar(lex_grammar),
conflict_manager(lex_grammar),
parse_table(parse_table) {
for (const rule_ptr &rule : lex_grammar.separators)
separator_rules.push_back(rules::Repeat::build(rule));

View file

@ -6,9 +6,6 @@
namespace tree_sitter {
namespace build_tables {
LexConflictManager::LexConflictManager(const LexicalGrammar &grammar)
: grammar(grammar) {}
bool LexConflictManager::resolve(const LexAction &new_action,
const LexAction &old_action) {
if (new_action.type < old_action.type)

View file

@ -13,10 +13,7 @@ class LexAction;
namespace build_tables {
class LexConflictManager {
const LexicalGrammar grammar;
public:
explicit LexConflictManager(const LexicalGrammar &);
bool resolve(const LexAction &, const LexAction &);
std::set<rules::Symbol> fragile_tokens;