Remove unused _cogl_pipeline_has_fragment_snippets

Unused since 8f58ad02fb ("cogl: Remove fixed pipeline support").

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178>
This commit is contained in:
Michel Dänzer 2023-08-10 15:08:15 +02:00 committed by Marge Bot
parent cfb3a20215
commit 600bcca747
2 changed files with 0 additions and 36 deletions

View File

@ -39,9 +39,6 @@ _cogl_pipeline_get_user_program (CoglPipeline *pipeline);
gboolean gboolean
_cogl_pipeline_has_vertex_snippets (CoglPipeline *pipeline); _cogl_pipeline_has_vertex_snippets (CoglPipeline *pipeline);
gboolean
_cogl_pipeline_has_fragment_snippets (CoglPipeline *pipeline);
gboolean gboolean
_cogl_pipeline_has_non_layer_vertex_snippets (CoglPipeline *pipeline); _cogl_pipeline_has_non_layer_vertex_snippets (CoglPipeline *pipeline);

View File

@ -1286,39 +1286,6 @@ _cogl_pipeline_has_non_layer_fragment_snippets (CoglPipeline *pipeline)
return authority->big_state->fragment_snippets.entries != NULL; 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 void
_cogl_pipeline_hash_color_state (CoglPipeline *authority, _cogl_pipeline_hash_color_state (CoglPipeline *authority,
CoglPipelineHashState *state) CoglPipelineHashState *state)