Skip to content

Commit

Permalink
clean: remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Dec 4, 2024
1 parent 88ac277 commit 8e1aea0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
32 changes: 1 addition & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion float-pigment-forest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ euclid = "0.22"
concat-idents = "1.1.3"
cbindgen = { version = "0.19", optional = true }
lru = "0.7.8"
fs_extra = "1.2"
float-pigment-forest-macro = { workspace = true }
bit-vec = "0.6.3"
lazy_static = "1.4"
Expand Down
3 changes: 0 additions & 3 deletions float-pigment-layout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@ euclid = { version = "0.22", default-features = false, features = ["libm"] }
lru = "0.7.8"
float-pigment-css = { workspace = true }

[target.'cfg(target_os="android")'.dependencies]
android_logger = "0.13.0"

[lints]
workspace = true
8 changes: 0 additions & 8 deletions float-pigment-layout/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ impl<T: LayoutTreeNode> LayoutNode<T> {
/// The `env` will be received in measure functions.
#[inline]
pub fn update(&self, env: &mut T::Env, node: &T, available_size: OptionSize<T::Length>) {
init_debug_logger();
self.unit.borrow_mut().compute(env, node, available_size)
}

Expand All @@ -335,7 +334,6 @@ impl<T: LayoutTreeNode> LayoutNode<T> {
available_size: OptionSize<T::Length>,
containing_size: OptionSize<T::Length>,
) {
init_debug_logger();
self.unit.borrow_mut().compute_with_containing_size(
env,
node,
Expand Down Expand Up @@ -444,9 +442,3 @@ impl<L: LengthNum> Default for ComputedStyle<L> {
}
}
}

#[doc(hidden)]
pub fn init_debug_logger() {
#[cfg(target_os = "android")]
android_logger::init_once(android_logger::Config::default().with_max_level(LevelFilter::Trace));
}

0 comments on commit 8e1aea0

Please sign in to comment.