[ANY] Remove deprecated

This commit is contained in:
Gravita 2022-04-12 18:58:14 +07:00
parent bf1967f32b
commit 83ae8a7e72

View file

@ -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);