summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/vertex_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/vertex_buffer.hpp')
-rw-r--r--src/mbgl/gl/vertex_buffer.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mbgl/gl/vertex_buffer.hpp b/src/mbgl/gl/vertex_buffer.hpp
index 0e2db2608f..0b62b86c12 100644
--- a/src/mbgl/gl/vertex_buffer.hpp
+++ b/src/mbgl/gl/vertex_buffer.hpp
@@ -1,9 +1,6 @@
#pragma once
#include <mbgl/gl/object.hpp>
-#include <mbgl/gfx/primitives.hpp>
-#include <mbgl/gfx/draw_mode.hpp>
-#include <mbgl/util/ignore.hpp>
#include <vector>
@@ -11,29 +8,6 @@ namespace mbgl {
namespace gl {
template <class V>
-class VertexVector {
-public:
- using Vertex = V;
-
- template <class... Args>
- void emplace_back(Args&&... args) {
- static_assert(sizeof...(args) == 1, "wrong buffer element count");
- util::ignore({(v.emplace_back(std::forward<Args>(args)), 0)...});
- }
-
- std::size_t vertexSize() const { return v.size(); }
- std::size_t byteSize() const { return v.size() * sizeof(Vertex); }
-
- bool empty() const { return v.empty(); }
- void clear() { v.clear(); }
- const Vertex* data() const { return v.data(); }
- const std::vector<Vertex>& vector() const { return v; }
-
-private:
- std::vector<Vertex> v;
-};
-
-template <class V>
class VertexBuffer {
public:
using Vertex = V;