From c4684b288dc2e43030f26ffc00ef50b25440dd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 13 Feb 2026 13:24:09 +0100 Subject: [PATCH] Remove some pointless comments --- src/egl_context.c | 6 ------ src/glx_context.c | 6 ------ src/nsgl_context.m | 6 ------ src/wgl_context.c | 6 ------ 4 files changed, 24 deletions(-) diff --git a/src/egl_context.c b/src/egl_context.c index 921d5c6e..46b098f5 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -358,8 +358,6 @@ static void destroyContextEGL(_GLFWwindow* window) ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// -// Initialize EGL -// GLFWbool _glfwInitEGL(void) { int i; @@ -545,8 +543,6 @@ GLFWbool _glfwInitEGL(void) return GLFW_TRUE; } -// Terminate EGL -// void _glfwTerminateEGL(void) { if (_glfw.egl.display) @@ -570,8 +566,6 @@ void _glfwTerminateEGL(void) attribs[index++] = v; \ } -// Create the OpenGL or OpenGL ES context -// GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) diff --git a/src/glx_context.c b/src/glx_context.c index 098c4bad..84fca9dd 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -253,8 +253,6 @@ static void destroyContextGLX(_GLFWwindow* window) ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// -// Initialize GLX -// GLFWbool _glfwInitGLX(void) { const char* sonames[] = @@ -426,8 +424,6 @@ GLFWbool _glfwInitGLX(void) return GLFW_TRUE; } -// Terminate GLX -// void _glfwTerminateGLX(void) { // NOTE: This function must not call any X11 functions, as it is called @@ -447,8 +443,6 @@ void _glfwTerminateGLX(void) attribs[index++] = v; \ } -// Create the OpenGL or OpenGL ES context -// GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) diff --git a/src/nsgl_context.m b/src/nsgl_context.m index df729800..cc676171 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -128,8 +128,6 @@ static void destroyContextNSGL(_GLFWwindow* window) ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// -// Initialize OpenGL support -// GLFWbool _glfwInitNSGL(void) { if (_glfw.nsgl.framework) @@ -147,14 +145,10 @@ GLFWbool _glfwInitNSGL(void) return GLFW_TRUE; } -// Terminate OpenGL support -// void _glfwTerminateNSGL(void) { } -// Create the OpenGL context -// GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) diff --git a/src/wgl_context.c b/src/wgl_context.c index 3c7d71c2..04429066 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -401,8 +401,6 @@ static void destroyContextWGL(_GLFWwindow* window) } } -// Initialize WGL -// GLFWbool _glfwInitWGL(void) { PIXELFORMATDESCRIPTOR pfd; @@ -521,8 +519,6 @@ GLFWbool _glfwInitWGL(void) return GLFW_TRUE; } -// Terminate WGL -// void _glfwTerminateWGL(void) { if (_glfw.wgl.instance) @@ -536,8 +532,6 @@ void _glfwTerminateWGL(void) attribs[index++] = v; \ } -// Create the OpenGL or OpenGL ES context -// GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig)