From c8c36c395c0c47d983a3a8cf782cd470800ba3bf Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 2 May 2016 11:20:28 -0700 Subject: [PATCH] [core] Remove unused --- include/mbgl/util/vec.hpp | 24 ------------------------ src/mbgl/util/vec.cpp | 11 ----------- 2 files changed, 35 deletions(-) delete mode 100644 src/mbgl/util/vec.cpp diff --git a/include/mbgl/util/vec.hpp b/include/mbgl/util/vec.hpp index 7c91ee0ad..40d540fca 100644 --- a/include/mbgl/util/vec.hpp +++ b/include/mbgl/util/vec.hpp @@ -95,30 +95,6 @@ struct vec2 { } }; -template -struct vec3 { - T x, y, z; - - inline vec3() = default; - inline vec3(const vec3& o) : x(o.x), y(o.y), z(o.z) {} - inline vec3(T x_, T y_, T z_) : x(x_), y(y_), z(z_) {} - inline bool operator==(const vec3& rhs) const { - return x == rhs.x && y == rhs.y && z == rhs.z; - } - - template::has_quiet_NaN, int>::type = 0> - explicit operator bool() const { - return !std::isnan(x) && !std::isnan(y) && !std::isnan(z); - } - - template::has_quiet_NaN, int>::type = 0> - explicit operator bool() const { - return x != std::numeric_limits::min() - && y != std::numeric_limits::min() - && z != std::numeric_limits::min(); - } -}; - template struct vec4 { T x, y, z, w; diff --git a/src/mbgl/util/vec.cpp b/src/mbgl/util/vec.cpp deleted file mode 100644 index ab7770eae..000000000 --- a/src/mbgl/util/vec.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include - -namespace mbgl { - -template struct vec2; -template struct vec2; - -template struct vec3; -template struct vec4; - -} // namespace mbgl