From ecbd035a4b6ffffc784e53d93086a7570e79cf03 Mon Sep 17 00:00:00 2001 From: jchen293 Date: Thu, 6 Jul 2023 15:00:41 -0400 Subject: [PATCH] remove unused code --- src/main/java/com/easypost/http/Requestor.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/com/easypost/http/Requestor.java b/src/main/java/com/easypost/http/Requestor.java index c88d35fc1..c4689e796 100644 --- a/src/main/java/com/easypost/http/Requestor.java +++ b/src/main/java/com/easypost/http/Requestor.java @@ -591,16 +591,6 @@ private static T httpRequest(final RequestMethod method, final String url, f handleAPIError(rBody, rCode); } - HashMap responseBodyForHook = new HashMap(); - responseBodyForHook.put("http_status", rCode); - responseBodyForHook.put("headers", headers); - responseBodyForHook.put("method", method.toString()); - responseBodyForHook.put("path", url); - responseBodyForHook.put("response_body", rBody); - responseBodyForHook.put("response_timestamp", Instant.now()); - responseBodyForHook.put("request_timestamp", requestTimestamp); - responseBodyForHook.put("request_uuid", requestUuid); - ResponseHookResponses responseHookResponses = new ResponseHookResponses(rCode, headers, method.toString(), url, rBody, Instant.now().toString(), requestTimestamp.toString(), requestUuid.toString());