From 933f05661d7c69595791d61c79e0651ef4c2d2e7 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Sun, 10 Nov 2024 16:31:29 -0800 Subject: [PATCH] Only compile `engine::point` when it's used This function will eventually be used in the application, but right now it's only used in tests. --- app-proto/src/engine.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/app-proto/src/engine.rs b/app-proto/src/engine.rs index 2978a9a..ca05646 100644 --- a/app-proto/src/engine.rs +++ b/app-proto/src/engine.rs @@ -4,6 +4,7 @@ use web_sys::{console, wasm_bindgen::JsValue}; /* DEBUG */ // --- elements --- +#[cfg(test)] pub fn point(x: f64, y: f64, z: f64) -> DVector { DVector::from_column_slice(&[x, y, z, 0.5, 0.5*(x*x + y*y + z*z)]) }