Skip to content

Commit 9d97d43

Browse files
committed
fix add rule.
Signed-off-by: Yuchuan <[email protected]>
1 parent ac6c10d commit 9d97d43

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cpp/grammar_builder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ class GrammarBuilder {
221221
/*! \brief Add a rule and return the rule id. */
222222
int32_t AddRule(const Rule& rule) {
223223
int32_t id = grammar_->rules_.size();
224-
auto rules = grammar_->rules_;
225224
grammar_->rules_.push_back(rule);
226225
XGRAMMAR_CHECK(rule_name_to_id_.count(rule.name) == 0);
227226
rule_name_to_id_[rule.name] = id;

0 commit comments

Comments
 (0)