1
0
Fork 0

cogl/magazine: Remove unused free functions

The only magazine instance created is a static so nothing to be freed

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
Bilal Elmoussaoui 2024-07-27 10:00:58 +02:00 committed by Marge Bot
parent 47695daed1
commit 5a6d2266e4
4 changed files with 0 additions and 35 deletions

View file

@ -73,6 +73,3 @@ _cogl_magazine_chunk_free (CoglMagazine *magazine, void *data)
chunk->next = magazine->head;
magazine->head = chunk;
}
void
_cogl_magazine_free (CoglMagazine *magazine);

View file

@ -73,10 +73,3 @@ _cogl_magazine_new (size_t chunk_size, int initial_chunk_count)
return magazine;
}
void
_cogl_magazine_free (CoglMagazine *magazine)
{
_cogl_memory_stack_free (magazine->stack);
g_free (magazine);
}

View file

@ -39,6 +39,3 @@ _cogl_memory_stack_new (size_t initial_size_bytes);
void *
_cogl_memory_stack_alloc (CoglMemoryStack *stack, size_t bytes);
void
_cogl_memory_stack_free (CoglMemoryStack *stack);

View file

@ -161,25 +161,3 @@ _cogl_memory_stack_alloc (CoglMemoryStack *stack, size_t bytes)
return sub_stack->data;
}
static void
_cogl_memory_sub_stack_free (CoglMemorySubStack *sub_stack)
{
g_free (sub_stack->data);
g_free (sub_stack);
}
void
_cogl_memory_stack_free (CoglMemoryStack *stack)
{
while (!_cogl_list_empty (&stack->sub_stacks))
{
CoglMemorySubStack *sub_stack =
_cogl_container_of (stack->sub_stacks.next, CoglMemorySubStack, link);
_cogl_list_remove (&sub_stack->link);
_cogl_memory_sub_stack_free (sub_stack);
}
g_free (stack);
}