From fd6f1f3cf184fd6bdfce094db2a3261c3f3d7ebe Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Mon, 19 Oct 2026 14:10:32 +0200 Subject: [PATCH] gail: drop two clist helpers nothing calls --- modules/other/gail/gailclist.c | 37 ---------------------------------- 1 file changed, 37 deletions(-) diff --git a/modules/other/gail/gailclist.c b/modules/other/gail/gailclist.c index 06fdb4a5e..07cf64cd0 100644 --- a/modules/other/gail/gailclist.c +++ b/modules/other/gail/gailclist.c @@ -51,28 +51,6 @@ #define COLUMN_LEFT_XPIXEL(clist, colnum) ((clist)->column[(colnum)].area.x + \ (clist)->hoffset) -/* returns the column index from a x pixel location in the - * context of the clist's hoffset */ -static inline gint -COLUMN_FROM_XPIXEL (GtkCList * clist, - gint x) -{ - gint i, cx; - - for (i = 0; i < clist->columns; i++) - if (clist->column[i].visible) - { - cx = clist->column[i].area.x + clist->hoffset; - - if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) && - x <= (cx + clist->column[i].area.width + COLUMN_INSET)) - return i; - } - - /* no match */ - return -1; -} - /* returns the top pixel of the given row in the context of * the list height */ #define ROW_TOP(clist, row) (((clist)->row_height + CELL_SPACING) * (row)) @@ -85,21 +63,6 @@ COLUMN_FROM_XPIXEL (GtkCList * clist, #define LIST_HEIGHT(clist) (((clist)->row_height * ((clist)->rows)) + \ (CELL_SPACING * ((clist)->rows + 1))) -static inline gint -LIST_WIDTH (GtkCList * clist) -{ - gint last_column; - - for (last_column = clist->columns - 1; - last_column >= 0 && !clist->column[last_column].visible; last_column--); - - if (last_column >= 0) - return (clist->column[last_column].area.x + - clist->column[last_column].area.width + - COLUMN_INSET + CELL_SPACING); - return 0; -} - /* returns the GList item for the nth row */ #define ROW_ELEMENT(clist, row) (((row) == (clist)->rows - 1) ? \ (clist)->row_list_end : \