From 5ce2da3100483eb505876b428c7c490ff445ba5c Mon Sep 17 00:00:00 2001 From: JulienBe Date: Tue, 19 Jan 2021 10:54:52 +0100 Subject: Remove dead code Remove unused variables Remove unnecessary statements Issue-ID: SDC-3428 Signed-off-by: JulienBe Change-Id: Iddc8ffdc141edd409d50f90c03cb6612f6ebf042 Signed-off-by: JulienBe --- .../main/java/org/openecomp/sdc/webseal/simulator/Login.java | 4 ---- .../org/openecomp/sdc/webseal/simulator/RequestsClient.java | 10 ---------- 2 files changed, 14 deletions(-) (limited to 'utils/webseal-simulator/src/main') diff --git a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/Login.java b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/Login.java index 9780c09936..3d4e772006 100644 --- a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/Login.java +++ b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/Login.java @@ -53,10 +53,6 @@ public class Login extends HttpServlet { System.out.println("about to build login page"); response.setContentType("text/html"); PrintWriter writer = response.getWriter(); - String message = (String) request.getAttribute("message"); - if (message == null) { - message = ""; - } Collection allUsers = Conf.getInstance().getUsers().values(); writer.println(""); diff --git a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/RequestsClient.java b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/RequestsClient.java index d03b93c727..7aa48e62cf 100644 --- a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/RequestsClient.java +++ b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/RequestsClient.java @@ -134,19 +134,9 @@ public class RequestsClient extends HttpServlet { try { result = IOUtils.toString(con.getErrorStream()); response.append(result); - } catch (Exception e2) { - result = null; - } - // logger.debug("Response body: {}", response); - - if (response != null) { - responseString = response.toString(); } - // Map> headerFields = con.getHeaderFields(); - // String responseMessage = con.getResponseMessage(); - con.disconnect(); return responseCode; -- cgit 1.2.3-korg