From f9923d7b76d5c121f06f861273e6caf8a286b19e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Oct 2020 18:16:59 +0100 Subject: 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. --- bindings/cxx/include/pugl/pugl.hpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'bindings/cxx') 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 #include #include -#include #include #include #include @@ -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; - /** 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( - puglSetLogLevel(cobj(), static_cast(level))); - } - /// @copydoc puglSetClassName Status setClassName(const char* const name) { -- cgit v1.2.1