From f5e2310dc77229ef0644ca4e05a6178f64f4273b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 21 Jan 2020 14:16:58 -0500 Subject: cogl: Remove unused _cogl_framebuffer_set_clip_stack https://gitlab.gnome.org/GNOME/mutter/merge_requests/1015 --- cogl/cogl/cogl-framebuffer-private.h | 15 +-------------- cogl/cogl/cogl-framebuffer.c | 9 --------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/cogl/cogl/cogl-framebuffer-private.h b/cogl/cogl/cogl-framebuffer-private.h index 579fdec0c..537056dca 100644 --- a/cogl/cogl/cogl-framebuffer-private.h +++ b/cogl/cogl/cogl-framebuffer-private.h @@ -259,9 +259,7 @@ _cogl_framebuffer_mark_clear_clip_dirty (CoglFramebuffer *framebuffer); * _cogl_framebuffer_get_clip_stack: * @framebuffer: A #CoglFramebuffer * - * Gets a pointer to the current clip stack. This can be used to later - * return to the same clip stack state with - * _cogl_framebuffer_set_clip_stack(). A reference is not taken on the + * Gets a pointer to the current clip stack. A reference is not taken on the * stack so if you want to keep it you should call * _cogl_clip_stack_ref(). * @@ -270,17 +268,6 @@ _cogl_framebuffer_mark_clear_clip_dirty (CoglFramebuffer *framebuffer); CoglClipStack * _cogl_framebuffer_get_clip_stack (CoglFramebuffer *framebuffer); -/* - * _cogl_framebuffer_set_clip_stack: - * @framebuffer: A #CoglFramebuffer - * @stack: a pointer to the replacement clip stack - * - * Replaces the @framebuffer clip stack with @stack. - */ -void -_cogl_framebuffer_set_clip_stack (CoglFramebuffer *framebuffer, - CoglClipStack *stack); - CoglMatrixStack * _cogl_framebuffer_get_modelview_stack (CoglFramebuffer *framebuffer); diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index 49403ff9b..3abdcc039 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -463,15 +463,6 @@ _cogl_framebuffer_get_clip_stack (CoglFramebuffer *framebuffer) return framebuffer->clip_stack; } -void -_cogl_framebuffer_set_clip_stack (CoglFramebuffer *framebuffer, - CoglClipStack *stack) -{ - _cogl_clip_stack_ref (stack); - _cogl_clip_stack_unref (framebuffer->clip_stack); - framebuffer->clip_stack = stack; -} - void cogl_framebuffer_set_viewport4fv (CoglFramebuffer *framebuffer, float *viewport) -- cgit v1.2.1