Skip to content

Commit

Permalink
clean up WebDiff class
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Mar 13, 2024
1 parent 5db6ca0 commit 467beb4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/gui/webdiff/WebDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@
import spark.Spark;

import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;

import static spark.Spark.*;

;

public class WebDiff {
public static final String JQUERY_JS_URL = "https://code.jquery.com/jquery-3.4.1.min.js";
public static final String BOOTSTRAP_CSS_URL = "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css";
Expand Down Expand Up @@ -95,9 +90,4 @@ private static String render(Renderable r) throws IOException {
r.renderOn(c);
return c.toHtml();
}

private static String readFile(String path, Charset encoding) throws IOException {
byte[] encoded = Files.readAllBytes(Paths.get(path));
return new String(encoded, encoding);
}
}

0 comments on commit 467beb4

Please sign in to comment.