From a93f35ac713180a312af5a788ac7da64c2973911 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 23 Jan 2020 18:08:18 +0100 Subject: [PATCH] LibCore: Remove redundant check in CObject::dispatch_event() --- Libraries/LibCore/CObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibCore/CObject.cpp b/Libraries/LibCore/CObject.cpp index 8e15383428..4f8b7facc8 100644 --- a/Libraries/LibCore/CObject.cpp +++ b/Libraries/LibCore/CObject.cpp @@ -194,7 +194,7 @@ void CObject::dispatch_event(CEvent& e, CObject* stay_within) e.accept(); break; } - } while (target && target != stay_within && !e.is_accepted()); + } while (target && !e.is_accepted()); } bool CObject::is_visible_for_timer_purposes() const