fix(generate): remove unused rules

This commit is contained in:
Amaan Qureshi 2024-10-03 14:39:41 -04:00
parent 19c33b1ef7
commit 99a0ddc4c2
4 changed files with 97 additions and 27 deletions

View file

@ -173,7 +173,7 @@ fn flatten_variable(variable: Variable) -> SyntaxVariable {
}
}
pub fn symbol_is_used(variables: &[SyntaxVariable], symbol: Symbol) -> bool {
fn symbol_is_used(variables: &[SyntaxVariable], symbol: Symbol) -> bool {
for variable in variables {
for production in &variable.productions {
for step in &production.steps {

View file

@ -13,7 +13,6 @@ use std::{
};
use anyhow::{anyhow, Result};
pub(super) use flatten_grammar::symbol_is_used;
pub use self::expand_tokens::expand_tokens;
use self::{