From ecb5bfec135160c9d0ea44eb0fdea0c6b6773553 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 29 Jun 2018 17:13:38 +0300 Subject: [PATCH] - removed obsolete code from POSIX backends --- src/posix/cocoa/gl_sysfb.h | 2 -- src/posix/cocoa/i_video.mm | 4 ---- src/posix/sdl/gl_sysfb.h | 1 - src/posix/sdl/sdlglvideo.cpp | 6 ------ 4 files changed, 13 deletions(-) diff --git a/src/posix/cocoa/gl_sysfb.h b/src/posix/cocoa/gl_sysfb.h index 39c8f8ab4..fc957a641 100644 --- a/src/posix/cocoa/gl_sysfb.h +++ b/src/posix/cocoa/gl_sysfb.h @@ -83,8 +83,6 @@ protected: void SetFullscreenMode(); void SetWindowedMode(); - void InitializeState(); - void SwapBuffers(); void SetGammaTable(uint16_t* table); diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index f50f1a4af..f4f03f2df 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -422,10 +422,6 @@ void SystemGLFrameBuffer::SetVSync(bool vsync) } -void SystemGLFrameBuffer::InitializeState() -{ -} - void SystemGLFrameBuffer::SwapBuffers() { [[NSOpenGLContext currentContext] flushBuffer]; diff --git a/src/posix/sdl/gl_sysfb.h b/src/posix/sdl/gl_sysfb.h index 16f2171ce..6972dd449 100644 --- a/src/posix/sdl/gl_sysfb.h +++ b/src/posix/sdl/gl_sysfb.h @@ -32,7 +32,6 @@ public: protected: void SetGammaTable(uint16_t *tbl); void ResetGammaTable(); - void InitializeState(); SystemGLFrameBuffer () {} uint8_t GammaTable[3][256]; diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index 42c7a7c20..34200520a 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -273,12 +273,6 @@ SystemGLFrameBuffer::~SystemGLFrameBuffer () } - - -void SystemGLFrameBuffer::InitializeState() -{ -} - void SystemGLFrameBuffer::SetGammaTable(uint16_t *tbl) { if (m_supportsGamma)