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)