Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 20, 2022
1 parent 4a2f869 commit aae5b53
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion crates/swc_css_compat/src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ mod legacy_rgb_and_hsl;
mod media_query_ranges;
mod nesting;
mod selector_not;
mod utils;

/// Compiles a modern CSS file to a CSS file which works with old browsers.
#[derive(Debug)]
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_css_compat/src/compiler/nesting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::iter::once;
use swc_common::{util::take::Take, DUMMY_SP};
use swc_css_ast::*;

use crate::{compiler::Compiler, utils::rule_to_component_value};
use crate::compiler::Compiler;

impl Compiler {
fn process_subclass_selectors(
Expand Down Expand Up @@ -257,7 +257,7 @@ impl Compiler {
nested_of_media.extend(
once(Rule::QualifiedRule(q))
.chain(rules.into_iter())
.map(rule_to_component_value),
.map(From::from),
);
}

Expand Down
1 change: 0 additions & 1 deletion crates/swc_css_compat/src/compiler/utils.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/swc_css_compat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@

pub mod compiler;
pub mod feature;
mod utils;
5 changes: 0 additions & 5 deletions crates/swc_css_compat/src/utils.rs

This file was deleted.

0 comments on commit aae5b53

Please sign in to comment.