From d55631384cd401f9c164d91cbeb0bb8954e6ee88 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 27 Nov 2007 08:34:41 +0000 Subject: [PATCH] Remove old comments. Fix errors discovered with -Wall. --- src/nvmath/SphericalHarmonic.h | 2 -- src/nvmath/Triangle.h | 2 +- src/nvmath/Vector.h | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/nvmath/SphericalHarmonic.h b/src/nvmath/SphericalHarmonic.h index 4b9181a..7e8341c 100644 --- a/src/nvmath/SphericalHarmonic.h +++ b/src/nvmath/SphericalHarmonic.h @@ -194,8 +194,6 @@ namespace nv /// Evaluate the spherical harmonic function. float sample(Vector3::Arg dir) const { - float out = 0.0f; - Sh sh(order()); sh.eval(dir); diff --git a/src/nvmath/Triangle.h b/src/nvmath/Triangle.h index 16772cd..7cd8db5 100644 --- a/src/nvmath/Triangle.h +++ b/src/nvmath/Triangle.h @@ -54,7 +54,7 @@ namespace nv inline bool rayTest(const Triangle & t, Vector3::Arg orig, Vector3::Arg dir, float * out_t, float * out_u, float * out_v) { - rayTest_Moller(t, orig, dir, out_t, out_u, out_v); + return rayTest_Moller(t, orig, dir, out_t, out_u, out_v); } inline bool overlap(const Triangle & t, const Box & b) diff --git a/src/nvmath/Vector.h b/src/nvmath/Vector.h index 5e8fbec..8654195 100644 --- a/src/nvmath/Vector.h +++ b/src/nvmath/Vector.h @@ -72,7 +72,6 @@ public: scalar component(uint idx) const; - // @@ temporary... should use an explicit method? const scalar * ptr() const; void set(scalar x, scalar y, scalar z); @@ -117,7 +116,6 @@ public: scalar component(uint idx) const; - // @@ temporary... should use an explicit method? const scalar * ptr() const; void set(scalar x, scalar y, scalar z, scalar w);