From c1c4c7795586ac805811f036045ce226be7a0e7d Mon Sep 17 00:00:00 2001 From: Brandon Thetford Date: Wed, 21 Feb 2024 00:05:25 -0700 Subject: [PATCH] All usages discard these Remove them --- Terminal.Gui/Application.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index b41e3d0c3..1f439f338 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -1125,15 +1125,12 @@ public static partial class Application } } - private static View FindDeepestTop (Toplevel start, int x, int y, out int resx, out int resy) + private static View FindDeepestTop (Toplevel start, int x, int y) { Rectangle startFrame = start.Frame; if (!startFrame.Contains (x, y)) { - resx = 0; - resy = 0; - return null; } @@ -1156,9 +1153,6 @@ public static partial class Application } } - resx = x - startFrame.X; - resy = y - startFrame.Y; - return start; } @@ -1488,7 +1482,7 @@ public static partial class Application && a.MouseEvent.Flags != MouseFlags.ReportMousePosition && a.MouseEvent.Flags != 0) { - View top = FindDeepestTop (Top, a.MouseEvent.X, a.MouseEvent.Y, out _, out _); + View top = FindDeepestTop (Top, a.MouseEvent.X, a.MouseEvent.Y); view = View.FindDeepestView (top, a.MouseEvent.X, a.MouseEvent.Y, out screenX, out screenY); if (view is { } && view != OverlappedTop && top != Current)