From d297a2f04af01213b6b37e7df0de4f1ad0812753 Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Tue, 7 Mar 2023 23:13:50 +0100 Subject: Removes the useless commented code in the OFF importer --- .../ardor3d/extension/model/off/OffImporter.java | 38 ---------------------- 1 file changed, 38 deletions(-) (limited to 'ardor3d-extras/src/main') diff --git a/ardor3d-extras/src/main/java/com/ardor3d/extension/model/off/OffImporter.java b/ardor3d-extras/src/main/java/com/ardor3d/extension/model/off/OffImporter.java index 80221fd..4a10098 100644 --- a/ardor3d-extras/src/main/java/com/ardor3d/extension/model/off/OffImporter.java +++ b/ardor3d-extras/src/main/java/com/ardor3d/extension/model/off/OffImporter.java @@ -169,44 +169,6 @@ public class OffImporter { } } -// public static interface OffReader extends Closeable { -// public double read() throws IOException; -// } - -// public static class AsciiOffReader implements OffReader { -// -// private final OffFileParser parser; -// private final BufferedReader reader; -// -// public AsciiOffReader(final InputStream stream) { -// super(); -// reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.US_ASCII)); -// parser = new OffFileParser(reader); -// } -// -// @Override -// public double read() throws IOException { -// do { -// parser.nextToken(); -// } while (parser.ttype != StreamTokenizer.TT_WORD && parser.ttype != StreamTokenizer.TT_EOF); -// if (parser.ttype == StreamTokenizer.TT_WORD) { -// try { -// parser.nval = Double.valueOf(parser.sval).doubleValue(); -// return parser.nval; -// } catch (final NumberFormatException nbe) { -// throw new IOException("Unparsable string " + parser.sval, nbe); -// } -// } else { -// throw new IOException("No number to read, end of file reached"); -// } -// } -// -// @Override -// public void close() throws IOException { -// reader.close(); -// } -// } - private static final Logger LOGGER = Logger.getLogger(OffImporter.class.getName()); public static class OffFileParser extends StreamTokenizer implements Closeable { -- cgit v1.2.3