mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
refactor(css/parser): Remove unused codes (#3903)
This commit is contained in:
parent
bf9e8d716c
commit
3a9af73167
@ -13,7 +13,6 @@ pub mod input;
|
||||
mod selector;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod traits;
|
||||
mod util;
|
||||
mod value;
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
use swc_common::Span;
|
||||
|
||||
use super::PResult;
|
||||
use crate::Parse;
|
||||
|
||||
pub(super) trait ParseDelmited<T>: Parse<T> {
|
||||
fn eat_delimiter(&mut self) -> PResult<bool>;
|
||||
}
|
||||
|
||||
pub(super) trait Block {
|
||||
type Content;
|
||||
|
||||
fn from_content(span: Span, content: Self::Content) -> Self;
|
||||
}
|
@ -1,15 +1,7 @@
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
use swc_common::Span;
|
||||
|
||||
use super::{input::ParserInput, Ctx, PResult, Parse, Parser};
|
||||
|
||||
pub(crate) trait ItemBlock {
|
||||
type Item;
|
||||
|
||||
fn from_items(span: Span, items: Vec<Self::Item>) -> Self;
|
||||
}
|
||||
|
||||
impl<I> Parser<I>
|
||||
where
|
||||
I: ParserInput,
|
||||
|
Loading…
Reference in New Issue
Block a user