From ea763a9f38857379c975150dd95e033a9a02d107 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 23 Aug 2023 19:45:01 +0200 Subject: [PATCH] Spectre/Window/GLContext: remove static create() method. --- include/Spectre/Window/GLContext.h | 2 -- source/Window/GLContext.cpp | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/include/Spectre/Window/GLContext.h b/include/Spectre/Window/GLContext.h index 4a08b93..e3bb423 100644 --- a/include/Spectre/Window/GLContext.h +++ b/include/Spectre/Window/GLContext.h @@ -13,8 +13,6 @@ class PlatformWindow; class GLContext { public : - static GLContext* create(); - virtual ~GLContext(); // Create a GLContext for this perticular window. diff --git a/source/Window/GLContext.cpp b/source/Window/GLContext.cpp index 7d9cb84..95d538e 100644 --- a/source/Window/GLContext.cpp +++ b/source/Window/GLContext.cpp @@ -1,23 +1,7 @@ - #include -#ifdef SPECTRE_PLATFORM_WIN -#include -typedef sp::Win32GLContext ContextType; -#elif SPECTRE_PLATFORM_UNIX -#include -typedef sp::GLXContext ContextType; -#else -#error "No GLContext implementation exists" -#endif - namespace sp { -GLContext* GLContext::create() -{ - return new ContextType(); -} - GLContext::~GLContext() { // Nothing to do.