summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r--src/chunk.cpp28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index a3c03b81..26b8779f 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -2,10 +2,11 @@
#include "object.hpp"
#include "world.hpp"
#include "tile-iterator.hpp"
+#include "log.hpp"
#include "RTree.h"
#include <algorithm>
-#include <Corrade/Containers/GrowableArray.h>
-#include <Magnum/GL/Context.h>
+#include <cr/GrowableArray.h>
+#include <cr/Optional.h>
namespace floormat {
@@ -15,29 +16,6 @@ constexpr auto object_id_lessp = [](const auto& a, const auto& b) { return a->id
size_t _reload_no_ = 0; // NOLINT
-[[maybe_unused]]
-bool is_log_quiet()
-{
- using GLCCF = GL::Implementation::ContextConfigurationFlag;
- auto flags = GL::Context::current().configurationFlags();
- return !!(flags & GLCCF::QuietLog);
-}
-
-bool is_log_verbose()
-{
- using GLCCF = GL::Implementation::ContextConfigurationFlag;
- auto flags = GL::Context::current().configurationFlags();
- return !!(flags & GLCCF::VerboseLog);
-}
-
-[[maybe_unused]]
-bool is_log_standard()
-{
- using GLCCF = GL::Implementation::ContextConfigurationFlag;
- auto flags = GL::Context::current().configurationFlags();
- return !(flags & (GLCCF::VerboseLog|GLCCF::QuietLog));
-}
-
} // namespace
bool chunk::empty(bool force) const noexcept