Skip to content

Commit

Permalink
Cleanup unused fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 16, 2024
1 parent 972a489 commit 9b4f190
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions java/src/processing/mode/java/JavaMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

Expand Down Expand Up @@ -60,25 +57,8 @@ public JavaMode(Base base, File folder) {
public String getTitle() {
return "Java";
}

File resourcesFolder;

@Deprecated
@Override
public File[] getKeywordFiles() {
var url = JavaMode.class.getClassLoader().getResource("keywords.txt");
if(url != null) {
try{
var target = Files.createTempFile("processing", "keywords.txt");
Files.copy(url.openStream(), target, StandardCopyOption.REPLACE_EXISTING);

return new File[] { target.toFile() };
}catch (IOException e){
e.printStackTrace();
}
}
return super.getKeywordFiles();
}


// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


Expand Down

0 comments on commit 9b4f190

Please sign in to comment.