From a71ad8e861d3eeecbd51b1c917fe9ce59576cc20 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Wed, 31 Jul 2024 13:27:29 +0200 Subject: [PATCH] cogl/list: Remove unused API Ideally, I think we might have to replace CoglList usage as the over-complicated macros makes it hard to parse But that is a task for another day Part-of: --- cogl/cogl/cogl-list.c | 17 ----------------- cogl/cogl/cogl-list.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/cogl/cogl/cogl-list.c b/cogl/cogl/cogl-list.c index 91f86b5cf..adb1d40b3 100644 --- a/cogl/cogl/cogl-list.c +++ b/cogl/cogl/cogl-list.c @@ -55,23 +55,6 @@ _cogl_list_remove (CoglList *elm) elm->prev = NULL; } -int -_cogl_list_length (CoglList *list) -{ - CoglList *e; - int count; - - count = 0; - e = list->next; - while (e != list) - { - e = e->next; - count++; - } - - return count; -} - int _cogl_list_empty (CoglList *list) { diff --git a/cogl/cogl/cogl-list.h b/cogl/cogl/cogl-list.h index dff9f3946..ffa221892 100644 --- a/cogl/cogl/cogl-list.h +++ b/cogl/cogl/cogl-list.h @@ -75,9 +75,6 @@ _cogl_list_insert (CoglList *list, void _cogl_list_remove (CoglList *elm); -int -_cogl_list_length (CoglList *list); - int _cogl_list_empty (CoglList *list);