Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/ungrammar/src/lib.rs')
-rw-r--r--lib/ungrammar/src/lib.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/ungrammar/src/lib.rs b/lib/ungrammar/src/lib.rs
index 6adf8ef8ea..e31b0c2f47 100644
--- a/lib/ungrammar/src/lib.rs
+++ b/lib/ungrammar/src/lib.rs
@@ -19,12 +19,6 @@ use std::{ops, str::FromStr};
pub use error::{Error, Result};
-/// Returns a Rust grammar.
-pub fn rust_grammar() -> Grammar {
- let src = include_str!("../rust.ungram");
- src.parse().unwrap()
-}
-
/// A node, like `A = 'b' | 'c'`.
///
/// Indexing into a [`Grammar`] with a [`Node`] returns a reference to a
@@ -130,8 +124,3 @@ fn smoke() {
let grammar = grammar.parse::<Grammar>().unwrap();
drop(grammar)
}
-
-#[test]
-fn test_rust_grammar() {
- let _ = rust_grammar();
-}