aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cxx/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-29 18:16:59 +0100
committerDavid Robillard <d@drobilla.net>2020-10-30 10:58:32 +0100
commitf9923d7b76d5c121f06f861273e6caf8a286b19e (patch)
treeb77bfe22b07e269912da6658e75c9eed8f8ca12c /bindings/cxx/include
parentcaf17373026a9de07ccd72edc282d46486257fb5 (diff)
downloadpugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.gz
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.bz2
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.zip
Remove logging API
This was missing from the C++ bindings and barely used anyway, so just remove it for now in the interests of simplicity and finalizing a stable API. The information previously logged in the X11 GL backend is now available programatically, so applications can print the same information portably if they like.
Diffstat (limited to 'bindings/cxx/include')
-rw-r--r--bindings/cxx/include/pugl/pugl.hpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/bindings/cxx/include/pugl/pugl.hpp b/bindings/cxx/include/pugl/pugl.hpp
index 32680cd..bfe0706 100644
--- a/bindings/cxx/include/pugl/pugl.hpp
+++ b/bindings/cxx/include/pugl/pugl.hpp
@@ -27,7 +27,6 @@
#include <cassert>
#include <chrono>
#include <cstdint>
-#include <functional>
#include <memory>
#include <stdexcept>
#include <type_traits>
@@ -236,20 +235,6 @@ static_assert(WorldFlag(PUGL_WORLD_THREADS) == WorldFlag::threads, "");
using WorldFlags = PuglWorldFlags; ///< @copydoc PuglWorldFlags
-/// @copydoc PuglLogLevel
-enum class LogLevel {
- err = PUGL_LOG_LEVEL_ERR, ///< @copydoc PUGL_LOG_LEVEL_ERR
- warning = PUGL_LOG_LEVEL_WARNING, ///< @copydoc PUGL_LOG_LEVEL_WARNING
- info = PUGL_LOG_LEVEL_INFO, ///< @copydoc PUGL_LOG_LEVEL_INFO
- debug = PUGL_LOG_LEVEL_DEBUG, ///< @copydoc PUGL_LOG_LEVEL_DEBUG
-};
-
-static_assert(LogLevel(PUGL_LOG_LEVEL_DEBUG) == LogLevel::debug, "");
-
-/// @copydoc PuglLogFunc
-using LogFunc =
- std::function<void(World& world, LogLevel level, const char* msg)>;
-
/**
A `std::chrono` compatible clock that uses Pugl time.
*/
@@ -310,14 +295,6 @@ public:
/// @copydoc puglGetNativeWorld
void* nativeWorld() { return puglGetNativeWorld(cobj()); }
- // TODO: setLogFunc
-
- Status setLogLevel(const LogLevel level)
- {
- return static_cast<Status>(
- puglSetLogLevel(cobj(), static_cast<PuglLogLevel>(level)));
- }
-
/// @copydoc puglSetClassName
Status setClassName(const char* const name)
{