Remove unused typedef from compiler.h
This commit is contained in:
parent
cdf63b6083
commit
946088bccc
3 changed files with 11 additions and 11 deletions
|
|
@ -24,11 +24,7 @@ namespace tree_sitter {
|
|||
return Choice::Build(rules);
|
||||
}
|
||||
|
||||
rule_ptr pattern(const string &value) {
|
||||
return make_shared<Pattern>(value);
|
||||
}
|
||||
|
||||
rule_ptr repeat(const rule_ptr content) {
|
||||
rule_ptr repeat(const rule_ptr &content) {
|
||||
return std::make_shared<Repeat>(content);
|
||||
}
|
||||
|
||||
|
|
@ -36,10 +32,6 @@ namespace tree_sitter {
|
|||
return Seq::Build(rules);
|
||||
}
|
||||
|
||||
rule_ptr str(const string &value) {
|
||||
return make_shared<String>(value);
|
||||
}
|
||||
|
||||
rule_ptr sym(const string &name) {
|
||||
return make_shared<Symbol>(name);
|
||||
}
|
||||
|
|
@ -47,5 +39,13 @@ namespace tree_sitter {
|
|||
rule_ptr _sym(const string &name) {
|
||||
return make_shared<Symbol>(name, SymbolTypeHidden);
|
||||
}
|
||||
|
||||
rule_ptr pattern(const string &value) {
|
||||
return make_shared<Pattern>(value);
|
||||
}
|
||||
|
||||
rule_ptr str(const string &value) {
|
||||
return make_shared<String>(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue