mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-03-30 21:18:17 +03:00
[ANY] Remove deprecated
This commit is contained in:
parent
bf1967f32b
commit
83ae8a7e72
1 changed files with 36 additions and 52 deletions
|
@ -20,8 +20,6 @@ public abstract class Request<R extends WebSocketEvent> implements WebSocketRequ
|
|||
@Deprecated
|
||||
public static StdWebSocketService service;
|
||||
private static RequestService requestService;
|
||||
@Deprecated
|
||||
private static UUID session;
|
||||
private static AuthRequestEvent.OAuthRequestEvent oauth;
|
||||
private static Map<String, String> extendedTokens;
|
||||
private static String authId;
|
||||
|
@ -45,16 +43,6 @@ public static boolean isAvailable() {
|
|||
return requestService != null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static UUID getSession() {
|
||||
return Request.session;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static void setSession(UUID session) {
|
||||
Request.session = session;
|
||||
}
|
||||
|
||||
public static void setOAuth(String authId, AuthRequestEvent.OAuthRequestEvent event) {
|
||||
oauth = event;
|
||||
Request.authId = authId;
|
||||
|
@ -146,9 +134,6 @@ public RequestRestoreReport(boolean legacySession, boolean refreshed, List<Strin
|
|||
}
|
||||
|
||||
public static RequestRestoreReport restore() throws Exception {
|
||||
if (session != null) {
|
||||
throw new UnsupportedOperationException("Legacy session system not supported");
|
||||
} else {
|
||||
boolean refreshed = false;
|
||||
RestoreRequest request;
|
||||
if(oauth != null) {
|
||||
|
@ -188,7 +173,6 @@ public static RequestRestoreReport restore() throws Exception {
|
|||
}
|
||||
return new RequestRestoreReport(false, refreshed, invalidTokens);
|
||||
}
|
||||
}
|
||||
|
||||
public static void requestError(String message) throws RequestException {
|
||||
throw new RequestException(message);
|
||||
|
|
Loading…
Reference in a new issue