From 16e8bb34de81a9c66a0aec96a85c2848c880c31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 11:49:11 +0200 Subject: [PATCH] Remove unused meta_stack_get_bottom Unused since 1b3a58c951f0 ("..."). Part-of: --- src/core/stack.c | 14 -------------- src/core/stack.h | 10 ---------- 2 files changed, 24 deletions(-) diff --git a/src/core/stack.c b/src/core/stack.c index 2a4e83e8a..fc7c71ad0 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -942,20 +942,6 @@ meta_stack_get_top (MetaStack *stack) return NULL; } -MetaWindow * -meta_stack_get_bottom (MetaStack *stack) -{ - GList *link; - - stack_ensure_sorted (stack); - - link = g_list_last (stack->sorted); - if (link != NULL) - return link->data; - else - return NULL; -} - MetaWindow * meta_stack_get_above (MetaStack *stack, MetaWindow *window, diff --git a/src/core/stack.h b/src/core/stack.h index 1be792a36..ef7459cdd 100644 --- a/src/core/stack.h +++ b/src/core/stack.h @@ -210,16 +210,6 @@ void meta_stack_thaw (MetaStack *stack); */ MetaWindow * meta_stack_get_top (MetaStack *stack); -/** - * meta_stack_get_bottom: - * @stack: The stack to search - * - * Finds the window at the bottom of the stack. Since that's pretty much - * always the desktop, this isn't the most useful of functions, and nobody - * actually calls it. We should probably get rid of it. - */ -MetaWindow * meta_stack_get_bottom (MetaStack *stack); - /** * meta_stack_get_above: * @stack: The stack to search.