summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-03 15:39:16 +0000
committerManolo Gouy <Manolo>2010-12-03 15:39:16 +0000
commitb6bfb36bc1c6ba8e72630bd95cad2355d2672c4d (patch)
tree6fe774e265d17afc47692534c51693c629af76dc
parentc95c08e6274b36d957d61eac52855ecd6d825303 (diff)
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
-rw-r--r--src/Fl_cocoa.mm11
1 files changed, 4 insertions, 7 deletions
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();
}
}