mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-13 15:50:59 +00:00
removed more now redundant code from CourseImpl
This commit is contained in:
1 parent
f8eb34e23d
commit
6e4bf7e273
1 file changed
-14
@@ -20,7 +20,6 @@ import com.sap.sailing.domain.base.Course;
|
||||
import com.sap.sailing.domain.base.CourseListener;
|
||||
import com.sap.sailing.domain.base.DomainFactory;
|
||||
import com.sap.sailing.domain.base.Leg;
|
||||
import com.sap.sailing.domain.base.Mark;
|
||||
import com.sap.sailing.domain.base.Waypoint;
|
||||
import com.sap.sailing.domain.common.NauticalSide;
|
||||
import com.sap.sailing.domain.common.impl.NamedImpl;
|
||||
@@ -273,19 +272,6 @@ public class CourseImpl extends NamedImpl implements Course {
|
||||
}
|
||||
}
|
||||
|
||||
private Set<ControlPoint> getControlPoints() {
|
||||
lockForRead();
|
||||
try {
|
||||
Set<ControlPoint> result = new HashSet<ControlPoint>();
|
||||
for (Waypoint waypoint : getWaypoints()) {
|
||||
result.add(waypoint.getControlPoint());
|
||||
}
|
||||
return result;
|
||||
} finally {
|
||||
unlockAfterRead();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Waypoint getWaypointForControlPoint(ControlPoint controlPoint, int start) {
|
||||
lockForRead();
|
||||
|
||||
Reference in new issue
Block a user