Remove icon from programminLanguage

master
Oystein Kristoffer Tveit 2021-04-25 23:35:23 +02:00
parent 28b9dba111
commit 690901fd8b
4 changed files with 0 additions and 20 deletions

View File

@ -15,12 +15,6 @@ public interface ProgrammingLanguage {
*/
public String getName();
/**
* The icon of the programming language
* @return The path of the icon
*/
public URL getIcon();
/**
* The map containing the regex and corresponding style-classes to be used for syntax highlighting
*/

View File

@ -9,15 +9,11 @@ import app.model.ProgrammingLanguage;
public class Empty implements ProgrammingLanguage {
private String name = "?";
private URL iconPath = this.getClass().getResource("");
public String getName() {
return this.name;
}
public URL getIcon() {
return this.iconPath;
}
public Map<Pattern, String> getPatternMap() {
return Map.of();

View File

@ -17,7 +17,6 @@ import app.model.ProgrammingLanguage;
public class Java implements ProgrammingLanguage {
private String name = "Java";
private URL iconPath = this.getClass().getResource("");
private static final String[] keywords = new String[] {
"abstract", "assert", "boolean", "break", "byte",
@ -67,10 +66,6 @@ public class Java implements ProgrammingLanguage {
return this.name;
}
public URL getIcon() {
return this.iconPath;
}
public Map<Pattern, String> getPatternMap() {
return Java.pattern;

View File

@ -15,7 +15,6 @@ import app.model.ProgrammingLanguage;
public class Markdown implements ProgrammingLanguage {
private String name = "Markdown";
private URL iconPath = this.getClass().getResource("");
private static Entry<Pattern, String> e(String k, String v) {
return new AbstractMap.SimpleEntry<>(Pattern.compile(k), v);
@ -52,10 +51,6 @@ public class Markdown implements ProgrammingLanguage {
return this.name;
}
public URL getIcon() {
return this.iconPath;
}
public Map<Pattern, String> getPatternMap() {
return Markdown.pattern;
}