This commit is contained in:
Anthony Stirling 2025-07-29 10:36:31 +01:00
parent d3028697f1
commit f38d051d7d

View File

@ -213,16 +213,6 @@ public class UIDataController {
} }
} }
private String getFormatFromExtension(String extension) {
switch (extension) {
case "ttf": return "truetype";
case "woff": return "woff";
case "woff2": return "woff2";
case "eot": return "embedded-opentype";
case "svg": return "svg";
default: return "";
}
}
// Data classes // Data classes
@Data @Data
@ -264,7 +254,7 @@ public class UIDataController {
this.type = getFormatFromExtension(extension); this.type = getFormatFromExtension(extension);
} }
private String getFormatFromExtension(String extension) { private static String getFormatFromExtension(String extension) {
switch (extension) { switch (extension) {
case "ttf": return "truetype"; case "ttf": return "truetype";
case "woff": return "woff"; case "woff": return "woff";