From 6c87c98ed0eff6766457e9d701c9f0dc126e00f5 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 16 Sep 2022 22:41:43 +0200 Subject: [PATCH] LibGL: Remove `GL::present_context` No need for a static method if all it does is invoke the object method. --- Userland/Libraries/LibGL/GLContext.cpp | 5 ----- Userland/Libraries/LibGL/GLContext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Userland/Libraries/LibGL/GLContext.cpp b/Userland/Libraries/LibGL/GLContext.cpp index 3c3c0fe297..2d4673c1d1 100644 --- a/Userland/Libraries/LibGL/GLContext.cpp +++ b/Userland/Libraries/LibGL/GLContext.cpp @@ -944,9 +944,4 @@ void make_context_current(GLContext* context) g_gl_context = context; } -void present_context(GLContext* context) -{ - context->present(); -} - } diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h index 32dc7a599d..6f780991dd 100644 --- a/Userland/Libraries/LibGL/GLContext.h +++ b/Userland/Libraries/LibGL/GLContext.h @@ -538,6 +538,5 @@ private: ErrorOr> create_context(Gfx::Bitmap&); void make_context_current(GLContext*); -void present_context(GLContext*); }