b=907986 remove unused ThreeDPoint::Distance() r=padenot
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 04 Sep 2013 21:21:00 +1200
changeset 145491 c2bfb5b08f75e6bbe246271170f200b2ece5158a
parent 145490 1100a5bc013b541c635bc42bd753531e95c952e4
child 145492 2ee662f747a2194cf28a7678aa3b1f8555f26e6b
push id33296
push userktomlinson@mozilla.com
push dateWed, 04 Sep 2013 20:32:35 +0000
treeherdermozilla-inbound@15a71c6cb0d3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs907986
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=907986 remove unused ThreeDPoint::Distance() r=padenot
content/media/webaudio/ThreeDPoint.h
--- a/content/media/webaudio/ThreeDPoint.h
+++ b/content/media/webaudio/ThreeDPoint.h
@@ -54,21 +54,16 @@ struct ThreeDPoint {
                        x * rhs.y - y * rhs.x);
   }
 
   double DotProduct(const ThreeDPoint& rhs)
   {
     return x * rhs.x + y * rhs.y + z * rhs.z;
   }
 
-  double Distance(const ThreeDPoint& rhs)
-  {
-    return sqrt(hypot(rhs.x, x) + hypot(rhs.y, y) + hypot(rhs.z, z));
-  }
-
   bool IsZero() const
   {
     return x == 0 && y == 0 && z == 0;
   }
 
   // For comparing two vectors of close to unit magnitude.
   bool FuzzyEqual(const ThreeDPoint& other);