diff options
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/func.rs b/src/func.rs index bd273b4a..bff4fdab 100644 --- a/src/func.rs +++ b/src/func.rs @@ -8,8 +8,8 @@ pub mod prelude { pub use crate::layout::Command::{self, *}; pub use crate::style::*; pub use crate::syntax::expr::*; - pub use crate::syntax::parsing::{parse, FuncArgs, FuncCall, ParseState}; - pub use crate::syntax::span::{Span, SpanVec, Spanned}; + pub use crate::syntax::parsing::{parse, FuncCall, ParseState}; + pub use crate::syntax::span::{Pos, Span, SpanVec, Spanned}; pub use crate::syntax::tree::{DynamicNode, SyntaxNode, SyntaxTree}; pub use crate::{Pass, Feedback}; pub use super::*; @@ -41,14 +41,3 @@ impl<T> OptionExt<T> for Option<T> { self } } - -/// Generate `unexpected argument` errors for all remaining arguments. -pub fn drain_args(args: FuncArgs, f: &mut Feedback) { - for arg in args.pos.0 { - error!(@f, arg.span, "unexpected argument"); - } - - for arg in args.key.0 { - error!(@f, arg.span, "unexpected argument"); - } -} |
