From 8511041c9eb28246251f3ae96bdd2b4f425ebf0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 11 Aug 2023 18:57:44 +0200 Subject: [PATCH] Remove unused _cogl_pipeline_get_layer_min/mag_filter Unused since 9b16b74b5d8c ("cogl: Remove unused stuff from cogl-material-compat.[ch]"). Part-of: --- cogl/cogl/cogl-pipeline-layer-state-private.h | 8 ------ cogl/cogl/cogl-pipeline-layer-state.c | 28 ------------------- 2 files changed, 36 deletions(-) diff --git a/cogl/cogl/cogl-pipeline-layer-state-private.h b/cogl/cogl/cogl-pipeline-layer-state-private.h index 5dce50453..96da08d3d 100644 --- a/cogl/cogl/cogl-pipeline-layer-state-private.h +++ b/cogl/cogl/cogl-pipeline-layer-state-private.h @@ -41,14 +41,6 @@ _cogl_pipeline_set_layer_unit (CoglPipeline *required_owner, CoglPipelineLayer *layer, int unit_index); -CoglPipelineFilter -_cogl_pipeline_get_layer_min_filter (CoglPipeline *pipeline, - int layer_index); - -CoglPipelineFilter -_cogl_pipeline_get_layer_mag_filter (CoglPipeline *pipeline, - int layer_index); - gboolean _cogl_pipeline_layer_texture_data_equal (CoglPipelineLayer *authority0, CoglPipelineLayer *authority1, diff --git a/cogl/cogl/cogl-pipeline-layer-state.c b/cogl/cogl/cogl-pipeline-layer-state.c index 1c3aa96c3..087bf05b2 100644 --- a/cogl/cogl/cogl-pipeline-layer-state.c +++ b/cogl/cogl/cogl-pipeline-layer-state.c @@ -1260,34 +1260,6 @@ cogl_pipeline_get_layer_filters (CoglPipeline *pipeline, return _cogl_pipeline_layer_get_filters (layer, min_filter, mag_filter); } -CoglPipelineFilter -_cogl_pipeline_layer_get_min_filter (CoglPipelineLayer *layer) -{ - CoglPipelineLayer *authority; - - g_return_val_if_fail (_cogl_is_pipeline_layer (layer), 0); - - authority = - _cogl_pipeline_layer_get_authority (layer, - COGL_PIPELINE_LAYER_STATE_SAMPLER); - - return authority->sampler_cache_entry->min_filter; -} - -CoglPipelineFilter -_cogl_pipeline_layer_get_mag_filter (CoglPipelineLayer *layer) -{ - CoglPipelineLayer *authority; - - g_return_val_if_fail (_cogl_is_pipeline_layer (layer), 0); - - authority = - _cogl_pipeline_layer_get_authority (layer, - COGL_PIPELINE_LAYER_STATE_SAMPLER); - - return authority->sampler_cache_entry->mag_filter; -} - void cogl_pipeline_set_layer_filters (CoglPipeline *pipeline, int layer_index,