From a93cc7c1c79db169183f1b03159b67a044f38a37 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Wed, 22 Feb 2023 12:43:25 +0100 Subject: Glib::Dispatcher: Remove a g_warning() Don't warn when a Dispatcher is deleted while messages are pending. Fixes #108 --- glib/glibmm/dispatcher.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/glib/glibmm/dispatcher.cc b/glib/glibmm/dispatcher.cc index d5a96deb..083f948e 100644 --- a/glib/glibmm/dispatcher.cc +++ b/glib/glibmm/dispatcher.cc @@ -126,11 +126,6 @@ fd_close_and_invalidate(int& fd) } #endif /* !G_OS_WIN32 */ -void warn_dropped_dispatcher_message() -{ - g_warning("Dropped dispatcher message as the dispatcher no longer exists."); -} - } // anonymous namespace namespace Glib @@ -337,8 +332,6 @@ void DispatchNotifier::unreference_instance( // Delete all slots connected to the Dispatcher. Then the signal emission // in pipe_io_handler() will do nothing. dispatcher_impl->signal_.clear(); - // Add a slot that will warn that a message has been dropped. - dispatcher_impl->signal_.connect(sigc::ptr_fun(warn_dropped_dispatcher_message)); instance->orphaned_dispatcher_impl_.push_front(UniqueImplPtr(dispatcher_impl)); } -- cgit v1.2.1