From 66f2777086e4d554067da7400f543fe7cc9e4b0b Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Mon, 9 Dec 2024 17:30:35 +0100 Subject: removed unused functions and friend relationss --- src/crepe/facade/SDLContext.cpp | 4 ---- src/crepe/facade/SDLContext.h | 18 ------------------ src/crepe/manager/LoopTimerManager.cpp | 1 - 3 files changed, 23 deletions(-) diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 6becf60..abdfed0 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -340,8 +340,6 @@ SDLContext::CameraValues SDLContext::set_camera(const Camera & cam) { return ret_cam; } -uint64_t SDLContext::get_ticks() const { return SDL_GetTicks64(); } - std::unique_ptr> SDLContext::texture_from_path(const std::string & path) { @@ -372,8 +370,6 @@ ivec2 SDLContext::get_size(const Texture & ctx) { return size; } -void SDLContext::delay(int ms) const { SDL_Delay(ms); } - std::vector SDLContext::get_events() { std::vector event_list; SDL_Event event; diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index e232511..31646a6 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -139,24 +139,6 @@ private: */ MouseButton sdl_to_mousebutton(Uint8 sdl_button); -private: - //! Will only use delay - friend class LoopTimer; - /** - * \brief Gets the current SDL ticks since the program started. - * \return Current ticks in milliseconds as a constant uint64_t. - */ - uint64_t get_ticks() const; - /** - * \brief Pauses the execution for a specified duration. - * - * This function uses SDL's delay function to halt the program execution for a given number - * of milliseconds, allowing for frame rate control or other timing-related functionality. - * - * \param ms Duration of the delay in milliseconds. - */ - void delay(int ms) const; - private: /** * \brief Constructs an SDLContext instance. diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp index 597b214..37b9c44 100644 --- a/src/crepe/manager/LoopTimerManager.cpp +++ b/src/crepe/manager/LoopTimerManager.cpp @@ -1,7 +1,6 @@ #include #include -#include "../facade/SDLContext.h" #include "../util/Log.h" #include "LoopTimerManager.h" -- cgit v1.2.3