From 5860d29351322f6023aa538bf44516a942eab113 Mon Sep 17 00:00:00 2001 From: zeruth Date: Mon, 24 Jun 2019 22:55:51 -0400 Subject: [PATCH] Update XteaClient.java --- .../runelite/http/api/xtea/XteaClient.java | 50 +------------------ 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java b/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java index ea859d8157..aa2b8382e4 100644 --- a/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java +++ b/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java @@ -49,55 +49,7 @@ public class XteaClient public void submit(XteaRequest xteaRequest) { - String json = RuneLiteAPI.GSON.toJson(xteaRequest); - - HttpUrl url = RuneLiteAPI.getPlusApiBase().newBuilder() - .addPathSegment("xtea") - .build(); - - logger.debug("Built URI: {}", url); - - Request request = new Request.Builder() - .post(RequestBody.create(JSON, json)) - .url(url) - .build(); - - try - { - try (Response response = RuneLiteAPI.RLP_CLIENT.newCall(request).execute()) - { - logger.debug("xtea response " + response.code()); - } - } - catch (IOException e) - { - e.printStackTrace(); - } - - RuneLiteAPI.RLP_CLIENT.newCall(request).enqueue(new Callback() - { - @Override - public void onFailure(Call call, IOException e) - { - logger.warn("unable to submit xtea keys", e); - } - - @Override - public void onResponse(Call call, Response response) - { - try - { - if (!response.isSuccessful()) - { - logger.debug("unsuccessful xtea response"); - } - } - finally - { - response.close(); - } - } - }); + // Don't submit xteas from private server } public List get() throws IOException