only:dead code
This commit is contained in:
parent
7a901b5db8
commit
04e987ef65
|
@ -58,17 +58,6 @@ public class ConfigUiField extends BaseConfigField {
|
|||
setValue(value);
|
||||
}
|
||||
|
||||
public static double getFloatValue(ConfigurationImage ci, Field field) {
|
||||
float value = field.getValue(ci).floatValue();
|
||||
// this hack is trying to restore lost precision. It's a lame hack
|
||||
String str = df.format(value);
|
||||
try {
|
||||
return df.parse(str).doubleValue();
|
||||
} catch (ParseException e) {
|
||||
throw new IllegalStateException("While parsing [" + str + "]");
|
||||
}
|
||||
}
|
||||
|
||||
public static int getIntValue(ConfigurationImage ci, Field field) {
|
||||
return field.getValue(ci).intValue();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue