From 9563bd6be7fe9b9831986592fc95d45af064e827 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Tue, 30 Oct 2012 14:23:35 +1000 Subject: [PATCH] Remove unnecessary static methods --- src/vector.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/vector.rs b/src/vector.rs index 87d6efd..45b009c 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -28,9 +28,6 @@ pub trait Vector { pure fn lerp(other: &self, value: T) -> self; pure fn min(other: &self) -> self; pure fn max(other: &self) -> self; - - static pure fn zero() -> self; - static pure fn identity() -> self; } pub trait Vector3 { @@ -142,9 +139,6 @@ pub impl Vec2: Vector { Vec2(max(&self[0], &other[0]), max(&self[1], &other[1])) } - - #[inline(always)] static pure fn zero() -> Vec2 { Vec2(0f, 0f) } - #[inline(always)] static pure fn identity() -> Vec2 { Vec2(1f, 1f) } } pub impl Vec2: Index { @@ -338,9 +332,6 @@ pub impl Vec3: Vector { max(&self[1], &other[1]), max(&self[2], &other[2])) } - - #[inline(always)] static pure fn zero() -> Vec3 { Vec3(0f, 0f, 0f) } - #[inline(always)] static pure fn identity() -> Vec3 { Vec3(1f, 1f, 1f) } } pub impl Vec3: Index { @@ -538,9 +529,6 @@ pub impl Vec4: Vector { max(&self[2], &other[2]), max(&self[3], &other[3])) } - - #[inline(always)] static pure fn zero() -> Vec4 { Vec4(0f, 0f, 0f, 0f) } - #[inline(always)] static pure fn identity() -> Vec4 { Vec4(1f, 1f, 1f, 1f) } } pub impl Vec4: Index {