From 0363f68561c2a19903a311ff1e0e10f801df7344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 11 Aug 2023 18:38:52 +0200 Subject: [PATCH] Remove unused _cogl_memory_stack_rewind Never used in mutter AFAICT. Part-of: --- cogl/cogl/cogl-memory-stack-private.h | 3 --- cogl/cogl/cogl-memory-stack.c | 9 --------- 2 files changed, 12 deletions(-) diff --git a/cogl/cogl/cogl-memory-stack-private.h b/cogl/cogl/cogl-memory-stack-private.h index 0b5e406ea..fd6375b38 100644 --- a/cogl/cogl/cogl-memory-stack-private.h +++ b/cogl/cogl/cogl-memory-stack-private.h @@ -40,8 +40,5 @@ _cogl_memory_stack_new (size_t initial_size_bytes); void * _cogl_memory_stack_alloc (CoglMemoryStack *stack, size_t bytes); -void -_cogl_memory_stack_rewind (CoglMemoryStack *stack); - void _cogl_memory_stack_free (CoglMemoryStack *stack); diff --git a/cogl/cogl/cogl-memory-stack.c b/cogl/cogl/cogl-memory-stack.c index 0e464a00e..18bd4add6 100644 --- a/cogl/cogl/cogl-memory-stack.c +++ b/cogl/cogl/cogl-memory-stack.c @@ -162,15 +162,6 @@ _cogl_memory_stack_alloc (CoglMemoryStack *stack, size_t bytes) return sub_stack->data; } -void -_cogl_memory_stack_rewind (CoglMemoryStack *stack) -{ - stack->sub_stack = _cogl_container_of (stack->sub_stacks.next, - CoglMemorySubStack, - link); - stack->sub_stack_offset = 0; -} - static void _cogl_memory_sub_stack_free (CoglMemorySubStack *sub_stack) {