From b6bfb36bc1c6ba8e72630bd95cad2355d2672c4d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 3 Dec 2010 15:39:16 +0000 Subject: Removed breakMacEventLoop() from function Fl::remove_timeout that is apparently not needed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 0dce5fbb6..51c4df245 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2494,14 +2494,11 @@ int Fl::has_timeout(Fl_Timeout_Handler cb, void* data) void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data) { - if (mac_timer_used) { - for (int i = 0; i < mac_timer_used; ++i) { - MacTimeout& t = mac_timers[i]; - if (t.callback == cb && ( t.data == data || data == NULL)) { - delete_timer(t); - } + for (int i = 0; i < mac_timer_used; ++i) { + MacTimeout& t = mac_timers[i]; + if (t.callback == cb && ( t.data == data || data == NULL)) { + delete_timer(t); } - breakMacEventLoop(); } } -- cgit v1.2.3