From c5a936e0e89447f70f6190f66daa816edc9c8fd5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 21 Jan 2020 14:14:06 -0500 Subject: [PATCH] cogl: Remove unused _cogl_framebuffer_{push,pop}_projection https://gitlab.gnome.org/GNOME/mutter/merge_requests/1015 --- cogl/cogl/cogl-framebuffer-private.h | 6 ------ cogl/cogl/cogl-framebuffer.c | 24 ------------------------ 2 files changed, 30 deletions(-) diff --git a/cogl/cogl/cogl-framebuffer-private.h b/cogl/cogl/cogl-framebuffer-private.h index 09a79981c..579fdec0c 100644 --- a/cogl/cogl/cogl-framebuffer-private.h +++ b/cogl/cogl/cogl-framebuffer-private.h @@ -332,12 +332,6 @@ _cogl_offscreen_new_with_texture_full (CoglTexture *texture, CoglOffscreenFlags create_flags, int level); -void -_cogl_framebuffer_push_projection (CoglFramebuffer *framebuffer); - -void -_cogl_framebuffer_pop_projection (CoglFramebuffer *framebuffer); - void _cogl_framebuffer_save_clip_stack (CoglFramebuffer *framebuffer); diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index 917efe1a7..49403ff9b 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -1599,30 +1599,6 @@ cogl_framebuffer_orthographic (CoglFramebuffer *framebuffer, COGL_FRAMEBUFFER_STATE_PROJECTION; } -void -_cogl_framebuffer_push_projection (CoglFramebuffer *framebuffer) -{ - CoglMatrixStack *projection_stack = - _cogl_framebuffer_get_projection_stack (framebuffer); - cogl_matrix_stack_push (projection_stack); - - if (framebuffer->context->current_draw_buffer == framebuffer) - framebuffer->context->current_draw_buffer_changes |= - COGL_FRAMEBUFFER_STATE_PROJECTION; -} - -void -_cogl_framebuffer_pop_projection (CoglFramebuffer *framebuffer) -{ - CoglMatrixStack *projection_stack = - _cogl_framebuffer_get_projection_stack (framebuffer); - cogl_matrix_stack_pop (projection_stack); - - if (framebuffer->context->current_draw_buffer == framebuffer) - framebuffer->context->current_draw_buffer_changes |= - COGL_FRAMEBUFFER_STATE_PROJECTION; -} - void cogl_framebuffer_get_modelview_matrix (CoglFramebuffer *framebuffer, CoglMatrix *matrix)