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) {