From f8475bc24fbb2a63e5c11d2dba5f73566dec334e Mon Sep 17 00:00:00 2001 From: JKlingen Date: Fri, 10 Aug 2012 10:32:29 +0000 Subject: [PATCH] removed unused method: FindElementUnderPoint git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1982 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/WindowCapture.cs | 21 --------------------- GreenshotPlugin/Interfaces/Capture.cs | 2 -- 2 files changed, 23 deletions(-) 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); } ///