mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 19:42:17 +00:00
bug5197: cleaned up merge problems, using new operation class; removed unused code in ClientServerOperationPair
This commit is contained in:
1 parent
6bd4c9239e
commit
ca0327c6f5
2 files changed
+1
-16
No files matched your search
+1
-1
@@ -306,7 +306,7 @@ public class SharedSailingDataImpl implements ReplicatingSharedSailingData, Clea
|
||||
@Override
|
||||
public void clearPositioningForMarkProperties(final MarkProperties markProperties) {
|
||||
final UUID markPropertiesUUID = markProperties.getId();
|
||||
apply(s -> s.internalSetPositioningInformationForMarkProperties(markPropertiesUUID, null));
|
||||
apply(new SetPositioningInformationForMarkPropertiesOperation(markPropertiesUUID, null));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
-15
@@ -17,19 +17,4 @@ public class ClientServerOperationPair<S, O extends Operation<S>> {
|
||||
public O getServerOp() {
|
||||
return serverOp;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <O extends Operation<S>, S> O getNoOp() {
|
||||
return (O) new Operation<S>() {
|
||||
@Override
|
||||
public S applyTo(S toState) {
|
||||
return toState; // don't change anything, return state unchanged
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean requiresSynchronousExecution() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user