From 14d8aec4b881de7126447f71fc6d1e43b22c488a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 29 Jun 2018 19:11:50 +0200 Subject: [PATCH] prefs: Allow no-op listener removal Allow removing a prefs handler that was already removed. This allows us to remove prefs from the dispose function without having to keep track of it in every place. --- src/core/prefs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/prefs.c b/src/core/prefs.c index b6a8ab7bf..bad54cbf2 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -860,8 +860,6 @@ meta_prefs_remove_listener (MetaPrefsChangedFunc func, tmp = tmp->next; } - - meta_bug ("Did not find listener to remove\n"); } static void