Skip to content

Commit

Permalink
Remove functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyderion committed Dec 6, 2024
1 parent b4c2b15 commit bfab2af
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/yak-swc/yak_swc/src/yak_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct YakImports {
///
/// Returns a `YakImports` struct containing:
/// - Mapped imports from next-yak
/// - CSS function identifiers
/// - CSS function identifiers
/// - Keyframe function identifiers
/// - Utility function references
pub fn visit_module_imports(module: &mut Module) -> YakImports {
Expand Down Expand Up @@ -77,20 +77,10 @@ impl YakImports {
&self.yak_css_idents
}

#[allow(dead_code)]
pub fn yak_library_imports(&self) -> &FxHashMap<Id, Id> {
&self.yak_library_imports
}

pub fn yak_keyframes_idents(&self) -> &FxHashSet<Id> {
&self.yak_keyframes_idents
}

#[allow(dead_code)]
pub fn yak_utilities(&self) -> &FxHashMap<String, Ident> {
&self.yak_utilities
}

/// Check if the current AST has imports to the next-yak library
pub fn is_using_next_yak(&self) -> bool {
!self.yak_library_imports.is_empty()
Expand Down

0 comments on commit bfab2af

Please sign in to comment.