From 600bcca74756ac3b3128aa1a8c538c25e690f040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 10 Aug 2023 15:08:15 +0200 Subject: [PATCH] Remove unused _cogl_pipeline_has_fragment_snippets Unused since 8f58ad02fb91 ("cogl: Remove fixed pipeline support"). Part-of: --- cogl/cogl/cogl-pipeline-state-private.h | 3 --- cogl/cogl/cogl-pipeline-state.c | 33 ------------------------- 2 files changed, 36 deletions(-) diff --git a/cogl/cogl/cogl-pipeline-state-private.h b/cogl/cogl/cogl-pipeline-state-private.h index e07840dee..c37c3108e 100644 --- a/cogl/cogl/cogl-pipeline-state-private.h +++ b/cogl/cogl/cogl-pipeline-state-private.h @@ -39,9 +39,6 @@ _cogl_pipeline_get_user_program (CoglPipeline *pipeline); gboolean _cogl_pipeline_has_vertex_snippets (CoglPipeline *pipeline); -gboolean -_cogl_pipeline_has_fragment_snippets (CoglPipeline *pipeline); - gboolean _cogl_pipeline_has_non_layer_vertex_snippets (CoglPipeline *pipeline); diff --git a/cogl/cogl/cogl-pipeline-state.c b/cogl/cogl/cogl-pipeline-state.c index 2b976c386..5f27cc9b7 100644 --- a/cogl/cogl/cogl-pipeline-state.c +++ b/cogl/cogl/cogl-pipeline-state.c @@ -1286,39 +1286,6 @@ _cogl_pipeline_has_non_layer_fragment_snippets (CoglPipeline *pipeline) return authority->big_state->fragment_snippets.entries != NULL; } -static gboolean -check_layer_has_fragment_snippet (CoglPipelineLayer *layer, - void *user_data) -{ - unsigned long state = COGL_PIPELINE_LAYER_STATE_FRAGMENT_SNIPPETS; - CoglPipelineLayer *authority = - _cogl_pipeline_layer_get_authority (layer, state); - gboolean *found_fragment_snippet = user_data; - - if (authority->big_state->fragment_snippets.entries) - { - *found_fragment_snippet = TRUE; - return FALSE; - } - - return TRUE; -} - -gboolean -_cogl_pipeline_has_fragment_snippets (CoglPipeline *pipeline) -{ - gboolean found_fragment_snippet = FALSE; - - if (_cogl_pipeline_has_non_layer_fragment_snippets (pipeline)) - return TRUE; - - _cogl_pipeline_foreach_layer_internal (pipeline, - check_layer_has_fragment_snippet, - &found_fragment_snippet); - - return found_fragment_snippet; -} - void _cogl_pipeline_hash_color_state (CoglPipeline *authority, CoglPipelineHashState *state)