diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-02-22 12:43:25 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-02-22 12:43:25 +0100 |
commit | a93cc7c1c79db169183f1b03159b67a044f38a37 (patch) | |
tree | 0109692e7eda4e2a36da65ab5eb80eff7335c1ec /glib/glibmm/dispatcher.cc | |
parent | a3f7c63249c08d7828cb3b98a6d9a9091543fbf8 (diff) | |
download | glibmm-a93cc7c1c79db169183f1b03159b67a044f38a37.tar.gz |
Glib::Dispatcher: Remove a g_warning()
Don't warn when a Dispatcher is deleted while messages are pending.
Fixes #108
Diffstat (limited to 'glib/glibmm/dispatcher.cc')
-rw-r--r-- | glib/glibmm/dispatcher.cc | 7 |
1 files changed, 0 insertions, 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)); } |