mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-30 15:57:11 +00:00
bug3639: made the passing instruction entry work; considering removing Offset and FixedBearing for now (declaring them "useless")
Change-Id: Ia32911b5b01ad02b6ecebc396cb0d0b1ea6a1803
This commit is contained in:
1 parent
bd0b929505
commit
2f364170bb
2 files changed
+15
-4
No files matched your search
+10
-3
@@ -28,11 +28,18 @@ public enum PassingInstruction {
|
||||
* removed at any time!
|
||||
*/
|
||||
public static PassingInstruction[] relevantValues() {
|
||||
PassingInstruction[] uiValues = new PassingInstruction[PassingInstruction.values().length - 1];
|
||||
|
||||
final PassingInstruction[] uselessValues = new PassingInstruction[] { None, Single_Unknown };
|
||||
PassingInstruction[] uiValues = new PassingInstruction[PassingInstruction.values().length - uselessValues.length];
|
||||
int i = 0;
|
||||
for (PassingInstruction p : PassingInstruction.values()) {
|
||||
if (p != None && p != Single_Unknown) {
|
||||
boolean useless = false;
|
||||
for (PassingInstruction u : uselessValues) {
|
||||
if (u == p) {
|
||||
useless = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!useless) {
|
||||
uiValues[i++] = p;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user