diff --git a/crates/ui-contract/src/primitives/icon.rs b/crates/ui-contract/src/primitives/icon.rs
index 758cd0744..36d9a1b18 100644
--- a/crates/ui-contract/src/primitives/icon.rs
+++ b/crates/ui-contract/src/primitives/icon.rs
@@ -2,7 +2,7 @@
use super::svg_set;
use super::textures::TextureCache;
-use crate::style::{DataColor, Ink, StyleColor, UiTokens, ink_color};
+use crate::style::{DataColor, Ink, StyleColor, UiTokens, ink_color, log_once};
use craft_behavior::IconId;
use craft_i18n::Direction;
use craft_theme::{IconPackId, Srgba};
@@ -220,15 +220,6 @@ pub(crate) fn paint(painter: &Painter, tokens: &UiTokens, direction: Direction,
}
}
-/// Runs `log` the first time `key` is seen: lookups repeat on every repaint and every resolve.
-fn log_once(key: String, log: impl FnOnce()) {
- static REPORTED: std::sync::Mutex