refactor(css/parser): Remove unused codes (#3903)

This commit is contained in:
Alexander Akait 2022-03-07 22:40:44 +03:00 committed by GitHub
parent bf9e8d716c
commit 3a9af73167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 23 deletions

View File

@ -13,7 +13,6 @@ pub mod input;
mod selector;
#[cfg(test)]
mod tests;
mod traits;
mod util;
mod value;

View File

@ -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;
}

View File

@ -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,