Remove unused abbreviation code from LabelType

Change-Id: I511de4a38ba5bdb3b8cbec3e0428446b62216272
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin 2014-06-23 15:41:48 +02:00
parent bfcbb2960c
commit 8c51563281

View File

@ -60,20 +60,6 @@ public class LabelType {
return name;
}
private static String getAbbreviation(String name) {
StringBuilder abbr = new StringBuilder();
for (int i = 0; i < name.length(); i++) {
char c = name.charAt(i);
if (c >= 'A' && c <= 'Z') {
abbr.append(c);
}
}
if (abbr.length() == 0) {
abbr.append(Character.toUpperCase(name.charAt(0)));
}
return abbr.toString();
}
private static List<LabelValue> sortValues(List<LabelValue> values) {
values = new ArrayList<>(values);
if (values.size() <= 1) {
@ -102,7 +88,6 @@ public class LabelType {
protected String name;
protected String abbreviation;
protected String functionName;
protected boolean copyMinScore;
protected boolean copyMaxScore;
@ -128,7 +113,6 @@ public class LabelType {
values = sortValues(valueList);
defaultValue = 0;
abbreviation = getAbbreviation(name);
functionName = "MaxWithBlock";
maxNegative = Short.MIN_VALUE;