From c5bb2e3f5603a07dd71f167d0f7fc240459cf0f9 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 18 Oct 2019 17:03:44 -0400 Subject: [PATCH] cogl: Remove unused cogl_renderer_get_n_fragment_texture_units https://gitlab.gnome.org/GNOME/mutter/merge_requests/874 --- cogl/cogl/cogl-renderer.c | 15 --------------- cogl/cogl/cogl-renderer.h | 14 -------------- cogl/cogl/cogl.symbols | 1 - 3 files changed, 30 deletions(-) diff --git a/cogl/cogl/cogl-renderer.c b/cogl/cogl/cogl-renderer.c index acc443e11..62fda895d 100644 --- a/cogl/cogl/cogl-renderer.c +++ b/cogl/cogl/cogl-renderer.c @@ -46,7 +46,6 @@ #include "cogl-config-private.h" #include "cogl-gtype-private.h" -#include "driver/gl/cogl-util-gl-private.h" #include "winsys/cogl-winsys-private.h" #include "winsys/cogl-winsys-stub-private.h" @@ -734,20 +733,6 @@ _cogl_renderer_get_proc_address (CoglRenderer *renderer, return winsys->renderer_get_proc_address (renderer, name, in_core); } -int -cogl_renderer_get_n_fragment_texture_units (CoglRenderer *renderer) -{ - int n = 0; - - _COGL_GET_CONTEXT (ctx, 0); - -#if defined (HAVE_COGL_GL) || defined (HAVE_COGL_GLES2) - GE (ctx, glGetIntegerv (GL_MAX_TEXTURE_IMAGE_UNITS, &n)); -#endif - - return n; -} - void cogl_renderer_add_constraint (CoglRenderer *renderer, CoglRendererConstraint constraint) diff --git a/cogl/cogl/cogl-renderer.h b/cogl/cogl/cogl-renderer.h index cdee0008e..be446b089 100644 --- a/cogl/cogl/cogl-renderer.h +++ b/cogl/cogl/cogl-renderer.h @@ -202,20 +202,6 @@ cogl_renderer_set_winsys_id (CoglRenderer *renderer, CoglWinsysID cogl_renderer_get_winsys_id (CoglRenderer *renderer); -/** - * cogl_renderer_get_n_fragment_texture_units: - * @renderer: A #CoglRenderer - * - * Queries how many texture units can be used from fragment programs - * - * Returns: the number of texture image units. - * - * Since: 1.8 - * Stability: Unstable - */ -int -cogl_renderer_get_n_fragment_texture_units (CoglRenderer *renderer); - /** * cogl_renderer_check_onscreen_template: (skip) * @renderer: A #CoglRenderer diff --git a/cogl/cogl/cogl.symbols b/cogl/cogl/cogl.symbols index d3d914095..0710d626e 100644 --- a/cogl/cogl/cogl.symbols +++ b/cogl/cogl/cogl.symbols @@ -732,7 +732,6 @@ cogl_renderer_get_driver #ifdef COGL_HAS_GTYPE_SUPPORT cogl_renderer_get_gtype #endif -cogl_renderer_get_n_fragment_texture_units cogl_renderer_error_get_type cogl_renderer_get_winsys_id cogl_renderer_new