1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removing warnings

This commit is contained in:
Alain Magloire 2004-08-26 15:17:48 +00:00
parent e5d98eb477
commit 1e9cf4ea12

View file

@ -301,12 +301,11 @@ public class CElementDelta implements ICElementDelta {
protected CElementDelta find(ICElement e) {
if (equalsAndSameParent(fChangedElement, e)) { // handle case of two jars that can be equals but not in the same project
return this;
} else {
for (int i = 0; i < fAffectedChildren.length; i++) {
CElementDelta delta = ((CElementDelta)fAffectedChildren[i]).find(e);
if (delta != null) {
return delta;
}
}
for (int i = 0; i < fAffectedChildren.length; i++) {
CElementDelta delta = ((CElementDelta)fAffectedChildren[i]).find(e);
if (delta != null) {
return delta;
}
}
return null;
@ -397,11 +396,10 @@ public class CElementDelta implements ICElementDelta {
CElementDelta delta = (CElementDelta)fAffectedChildren[i];
if (equalsAndSameParent(delta.getElement(), element)) { // handle case of two jars that can be equals but not in the same project
return delta;
} else {
delta = delta.getDeltaFor(element);
if (delta != null)
return delta;
}
delta = delta.getDeltaFor(element);
if (delta != null)
return delta;
}
return null;
}