summaryrefslogtreecommitdiff
path: root/src/mbgl/algorithm/generate_clip_ids.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/algorithm/generate_clip_ids.hpp')
-rw-r--r--src/mbgl/algorithm/generate_clip_ids.hpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/mbgl/algorithm/generate_clip_ids.hpp b/src/mbgl/algorithm/generate_clip_ids.hpp
deleted file mode 100644
index 6950433578..0000000000
--- a/src/mbgl/algorithm/generate_clip_ids.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#pragma once
-
-#include <mbgl/tile/tile_id.hpp>
-#include <mbgl/util/clip_id.hpp>
-
-#include <set>
-#include <vector>
-#include <map>
-
-namespace mbgl {
-namespace algorithm {
-
-class ClipIDGenerator {
-private:
- struct Leaf {
- Leaf(ClipID&);
- void add(const CanonicalTileID &p);
- bool operator==(const Leaf &other) const;
-
- std::set<CanonicalTileID> children;
- ClipID& clip;
- };
-
- uint8_t bit_offset = 0;
- std::multimap<UnwrappedTileID, Leaf> pool;
-
-public:
- // The given vector must be sorted by id.
- template <typename Renderable>
- void update(std::vector<std::reference_wrapper<Renderable>> sortedRenderables);
-
- std::map<UnwrappedTileID, ClipID> getClipIDs() const;
-};
-
-} // namespace algorithm
-} // namespace mbgl