chore: clean up

This commit is contained in:
octopus_yan 2024-09-19 12:32:22 +08:00
parent 654b13e150
commit be7e17665f
3 changed files with 1 additions and 10 deletions

View File

@ -150,12 +150,6 @@ public class Context {
return LANGUAGE_RESOURCE_FACTORY.getResourceBundleProperty();
}
/**
* 初始化 语言
*/
private static void initI18n() {
}
/**
* 有此类所在路径决定相对路径
*
@ -183,7 +177,6 @@ public class Context {
private static void loadScene() {
try {
FXMLLoader loader = FxmlUtil.load("root-view");
loader.setControllerFactory(Context.getControlFactory());
//底层面板
Pane root = loader.load();
Optional.ofNullable(scene).ifPresentOrElse(

View File

@ -25,7 +25,7 @@ public class FxmlUtil {
FxmlUtil.class.getResource(prefix + name + suffix),
bundle,
new JavaFXBuilderFactory(),
null,
Context.getControlFactory(),
StandardCharsets.UTF_8
);
}

View File

@ -43,7 +43,6 @@ public class Registry {
RESTORE,
SAVE,
UNLOAD,
;
}
public enum Root {
@ -75,6 +74,5 @@ public class Registry {
REG_LINK,
REG_FULL_RESOURCE_DESCRIPTOR,
REG_EXPAND_SZ,
;
}
}