Skip to content

Commit 23def1d

Browse files
committed
remove development hooks from production code
1 parent 514a115 commit 23def1d

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

bindings/java/src/main/java/com/cadoodlecad/manifold/ManifoldBindings.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,11 @@ private static void loadNativeLibrary(String libName, File cacheDirectory) throw
8383
libsDir.mkdirs();
8484

8585
java.io.File libFile = new java.io.File(libsDir, fullName);
86-
java.io.File devFile = new java.io.File(
87-
"src/main/resources/manifold3d/natives/" + platform + "/" + fullName);
88-
89-
System.out.println("Searching library: " + devFile.getAbsolutePath());
9086

9187
// Check timestamp, copy only newer
9288
boolean needsCopy = !libFile.exists();
93-
if (!needsCopy && devFile.exists())
94-
needsCopy = devFile.lastModified() > libFile.lastModified();
95-
9689
if (needsCopy) {
97-
// if (devFile.exists()) {
98-
// java.nio.file.Files.copy(devFile.toPath(), libFile.toPath(),
99-
// java.nio.file.StandardCopyOption.REPLACE_EXISTING,
100-
// java.nio.file.StandardCopyOption.COPY_ATTRIBUTES);
101-
// libFile.setExecutable(true);
102-
// } else {
90+
10391
try (java.io.InputStream in = ManifoldBindings.class
10492
.getResourceAsStream("/manifold3d/natives/" + platform + "/" + fullName)) {
10593
if (in == null)

0 commit comments

Comments
 (0)