From 7522e156aeaf05a010520c48f187cfa8aaae7442 Mon Sep 17 00:00:00 2001 From: Gravita Date: Thu, 24 Mar 2022 16:51:50 +0700 Subject: [PATCH] [ANY] Remove signedClientConfig and securityManagerConfig --- .../pro/gravit/launcher/api/SystemService.java | 10 ---------- .../gravit/launcher/profiles/ClientProfile.java | 16 ---------------- 2 files changed, 26 deletions(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/api/SystemService.java b/Launcher/src/main/java/pro/gravit/launcher/api/SystemService.java index 427c6275..57c60481 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/api/SystemService.java +++ b/Launcher/src/main/java/pro/gravit/launcher/api/SystemService.java @@ -12,14 +12,4 @@ private SystemService() { public static void exit(int code) { LauncherEngine.exitLauncher(code); } - - public static void setSecurityManager(SecurityManager s) { - LogHelper.debug("Try set security manager %s", s == null ? "null" : s.getClass().getName()); - if (AuthService.profile == null || AuthService.profile.getSecurityManagerConfig() == ClientProfile.SecurityManagerConfig.NONE) - return; - if (AuthService.profile.getSecurityManagerConfig() == ClientProfile.SecurityManagerConfig.CLIENT) { - System.setSecurityManager(s); - } - //TODO NEXT - } } diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java index de75f5c7..162b22c8 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java @@ -426,14 +426,6 @@ public int hashCode() { return Objects.hash(uuid); } - public SecurityManagerConfig getSecurityManagerConfig() { - return securityManagerConfig; - } - - public void setSecurityManagerConfig(SecurityManagerConfig securityManagerConfig) { - this.securityManagerConfig = securityManagerConfig; - } - public ClassLoaderConfig getClassLoaderConfig() { return classLoaderConfig; } @@ -442,14 +434,6 @@ public void setClassLoaderConfig(ClassLoaderConfig classLoaderConfig) { this.classLoaderConfig = classLoaderConfig; } - public SignedClientConfig getSignedClientConfig() { - return signedClientConfig; - } - - public void setSignedClientConfig(SignedClientConfig signedClientConfig) { - this.signedClientConfig = signedClientConfig; - } - public RuntimeInClientConfig getRuntimeInClientConfig() { return runtimeInClientConfig; }