diff --git a/GreenshotPlugin/Core/WindowCapture.cs b/GreenshotPlugin/Core/WindowCapture.cs index fc7371e29..9470112d8 100644 --- a/GreenshotPlugin/Core/WindowCapture.cs +++ b/GreenshotPlugin/Core/WindowCapture.cs @@ -368,14 +368,6 @@ namespace GreenshotPlugin.Core { } } - public ICaptureElement FindElementUnderPoint(Point p) { - foreach(ICaptureElement element in elements) { - if (element.Bounds.Contains(p)) { - return element.FindElementUnderPoint(p); - } - } - return null; - } } /// @@ -412,19 +404,6 @@ namespace GreenshotPlugin.Core { set; } - public ICaptureElement FindElementUnderPoint(Point point) { - if (!Bounds.Contains(point)) { - return null; - } - foreach(CaptureElement childElement in children) { - if (childElement.Bounds.Contains(point)) { - ICaptureElement selectedElement = childElement.FindElementUnderPoint(point); - return selectedElement; - } - } - return this; - } - // CaptureElements are regarded equal if their bounds are equal. this should be sufficient. public override bool Equals(object obj) { bool ret = false; diff --git a/GreenshotPlugin/Interfaces/Capture.cs b/GreenshotPlugin/Interfaces/Capture.cs index 8feca439e..b020e7924 100644 --- a/GreenshotPlugin/Interfaces/Capture.cs +++ b/GreenshotPlugin/Interfaces/Capture.cs @@ -96,8 +96,6 @@ namespace Greenshot.Plugin { get; set; } - - ICaptureElement FindElementUnderPoint(Point p); } ///