From 9770e36f8ba337619ed49a8513ce97232da97d0c Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 17 Mar 2022 14:55:26 +0100 Subject: [PATCH] Remove redundant method --- fj-app/src/graphics/config_ui.rs | 2 +- fj-app/src/main.rs | 2 +- fj-math/src/vector.rs | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fj-app/src/graphics/config_ui.rs b/fj-app/src/graphics/config_ui.rs index 9b1a4a03b..40c77904a 100644 --- a/fj-app/src/graphics/config_ui.rs +++ b/fj-app/src/graphics/config_ui.rs @@ -69,7 +69,7 @@ impl ConfigUi { } /* Render size of model bounding box */ - let bbsize = aabb.size().components(); + let bbsize = aabb.size().components; let info = format!( "Model bounding box size: {:0.1} {:0.1} {:0.1}", bbsize[0].into_f32(), diff --git a/fj-app/src/main.rs b/fj-app/src/main.rs index ebe3b6acb..2f8237065 100644 --- a/fj-app/src/main.rs +++ b/fj-app/src/main.rs @@ -104,7 +104,7 @@ fn main() -> anyhow::Result<()> { // look at the smallest non-zero extent of the bounding box and divide that // by some value. let mut min_extent = Scalar::MAX; - for extent in aabb.size().components() { + for extent in aabb.size().components { if extent > Scalar::ZERO && extent < min_extent { min_extent = extent; } diff --git a/fj-math/src/vector.rs b/fj-math/src/vector.rs index d22ed13a0..d1c296c32 100644 --- a/fj-math/src/vector.rs +++ b/fj-math/src/vector.rs @@ -79,11 +79,6 @@ impl Vector { pub fn dot(&self, other: &Self) -> Scalar { self.to_na().dot(&other.to_na()).into() } - - /// Access an iterator over the vector's components - pub fn components(&self) -> [Scalar; D] { - self.components - } } impl Vector<3> {