only:dead code

This commit is contained in:
rusefillc 2023-06-18 20:41:34 -04:00
parent 7a901b5db8
commit 04e987ef65
1 changed files with 0 additions and 11 deletions

View File

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