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:
Axel Uhl committed 2016-05-01 11:37:08 +02:00
1 parent bd0b929505
commit 2f364170bb
2 files changed
+15 -4

No files matched your search

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