aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-extras/src/main/java/com
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2023-03-07 23:13:50 +0100
committerJulien Gouesse <[email protected]>2023-03-07 23:13:50 +0100
commitd297a2f04af01213b6b37e7df0de4f1ad0812753 (patch)
treedcd6b20ccb47cf749102171aa7125c5a49cb8768 /ardor3d-extras/src/main/java/com
parent4fff8b5021632b5086976552833581196e3b81a3 (diff)
Removes the useless commented code in the OFF importer
Diffstat (limited to 'ardor3d-extras/src/main/java/com')
-rw-r--r--ardor3d-extras/src/main/java/com/ardor3d/extension/model/off/OffImporter.java38
1 files changed, 0 insertions, 38 deletions
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 {