From de2479b70f469b8785fdbfecb0f5476f475bdc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 11 Oct 2014 00:20:53 +0200 Subject: [PATCH] Do not implement `Transform for Vec*`. This is error prone as this is a no-op for vectors and a translation for points. --- src/structs/vec_macros.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/structs/vec_macros.rs b/src/structs/vec_macros.rs index d94313b8..c3eea585 100644 --- a/src/structs/vec_macros.rs +++ b/src/structs/vec_macros.rs @@ -668,16 +668,6 @@ macro_rules! transform_impl( self.inv_translate(other) } } - - impl Transform<$tv> for $tv { - fn transform(&self, other: &$tv) -> $tv { - other.clone() - } - - fn inv_transform(&self, other: &$tv) -> $tv { - other.clone() - } - } ) )