Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit f9f4e9c

Browse files
committed
DefaultTableIOPlugin.guessParser: Remove dead code
* the guessParser method is currently always prefers double over float * the float parsing lines are therefore removed since they can't be reached
1 parent 922e925 commit f9f4e9c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/org/scijava/table/DefaultTableIOPlugin.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ static Function<String, Object> guessParser(String content) {
256256
Double.valueOf(content);
257257
return Double::valueOf;
258258
} catch(NumberFormatException ignored) {}
259-
try {
260-
Float.valueOf(content);
261-
return Float::valueOf;
262-
} catch(NumberFormatException ignored) {}
263259
if(content.equalsIgnoreCase("true")||content.equalsIgnoreCase("false")) {
264260
return Boolean::valueOf;
265261
}

0 commit comments

Comments
 (0)