diff options
author | Adam Jackson <ajax@redhat.com> | 2020-01-21 14:16:58 -0500 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2020-01-31 17:26:25 +0000 |
commit | f5e2310dc77229ef0644ca4e05a6178f64f4273b (patch) | |
tree | e8d16f1d11694b45b7a204f697bdbe2d8177695e | |
parent | c5a936e0e89447f70f6190f66daa816edc9c8fd5 (diff) | |
download | mutter-f5e2310dc77229ef0644ca4e05a6178f64f4273b.tar.gz |
cogl: Remove unused _cogl_framebuffer_set_clip_stack
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1015
-rw-r--r-- | cogl/cogl/cogl-framebuffer-private.h | 15 | ||||
-rw-r--r-- | cogl/cogl/cogl-framebuffer.c | 9 |
2 files changed, 1 insertions, 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 @@ -464,15 +464,6 @@ _cogl_framebuffer_get_clip_stack (CoglFramebuffer *framebuffer) } 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) { |