From c7c1ff68fdb671a2313a8e4338d3b46ec422a21b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 1 Feb 2020 16:43:10 +0100 Subject: [PATCH] Platform/Win32: remove Win32MsgBuffer --- engine.build.lua | 1 - source/Platform/Win32/Win32MsgBuffer.cpp | 22 ---------------------- source/Platform/Win32/Win32MsgBuffer.h | 22 ---------------------- 3 files changed, 45 deletions(-) delete mode 100644 source/Platform/Win32/Win32MsgBuffer.cpp delete mode 100644 source/Platform/Win32/Win32MsgBuffer.h diff --git a/engine.build.lua b/engine.build.lua index c4a7b84..37958dc 100644 --- a/engine.build.lua +++ b/engine.build.lua @@ -48,7 +48,6 @@ local platform_spec_module = Module("source/Platform/Win32", { "Win32Misc.cpp", "Win32Mouse.cpp", "Win32EventQueue.cpp", - "Win32MsgBuffer.cpp", "Win32System.cpp", "glad_wgl.c" }) diff --git a/source/Platform/Win32/Win32MsgBuffer.cpp b/source/Platform/Win32/Win32MsgBuffer.cpp deleted file mode 100644 index a1d6693..0000000 --- a/source/Platform/Win32/Win32MsgBuffer.cpp +++ /dev/null @@ -1,22 +0,0 @@ - -#include -#include "Win32MsgBuffer.h" - -namespace sp { - -Win32MsgBuffer::Win32MsgBuffer() : -index (0) -{ -} - -bool Win32MsgBuffer::postMessage(MSG msg) -{ - if (index < WIN32_MSG_BUFFER_MAX_SIZE) { - messages[index++] = msg; - return true; - } - Log::warn("Win32MsgBuffer: Queue overflow\n"); - return false; -} - -} // namespace sp diff --git a/source/Platform/Win32/Win32MsgBuffer.h b/source/Platform/Win32/Win32MsgBuffer.h deleted file mode 100644 index e7bf87b..0000000 --- a/source/Platform/Win32/Win32MsgBuffer.h +++ /dev/null @@ -1,22 +0,0 @@ - -#ifndef PLATFORM_WIN32_MSG_BUFFER_H -#define PLATFORM_WIN32_MSG_BUFFER_H - -#include - -namespace sp { - -#define WIN32_MSG_BUFFER_MAX_SIZE 64 - -struct Win32MsgBuffer { - int index; - MSG messages[WIN32_MSG_BUFFER_MAX_SIZE]; - - Win32MsgBuffer(); - - bool postMessage(MSG msg); -}; - -} // namespace sp - -#endif /* PLATFORM_WIN32_MSG_BUFFER_H */