removed unused method: FindElementUnderPoint

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1982 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
JKlingen 2012-08-10 10:32:29 +00:00
parent 6f8489fe38
commit f8475bc24f
2 changed files with 0 additions and 23 deletions

View file

@ -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;
}
}
/// <summary>
@ -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;