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)