summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-05-02 11:20:28 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-05-02 11:26:37 -0700
commitc8c36c395c0c47d983a3a8cf782cd470800ba3bf (patch)
treeb2c10c00ee3741daddb7c6cb3e368679b391d0d0 /include
parent41f63db98bb0f1bd960b3555c20d8f09c212dbc5 (diff)
downloadqtlocation-mapboxgl-c8c36c395c0c47d983a3a8cf782cd470800ba3bf.tar.gz
[core] Remove unused
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/vec.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/mbgl/util/vec.hpp b/include/mbgl/util/vec.hpp
index 7c91ee0ad7..40d540fca4 100644
--- a/include/mbgl/util/vec.hpp
+++ b/include/mbgl/util/vec.hpp
@@ -96,30 +96,6 @@ struct vec2 {
};
template <typename T = double>
-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<typename U = T, typename std::enable_if<std::numeric_limits<U>::has_quiet_NaN, int>::type = 0>
- explicit operator bool() const {
- return !std::isnan(x) && !std::isnan(y) && !std::isnan(z);
- }
-
- template<typename U = T, typename std::enable_if<!std::numeric_limits<U>::has_quiet_NaN, int>::type = 0>
- explicit operator bool() const {
- return x != std::numeric_limits<T>::min()
- && y != std::numeric_limits<T>::min()
- && z != std::numeric_limits<T>::min();
- }
-};
-
-template <typename T = double>
struct vec4 {
T x, y, z, w;