From 5f7b0aae061609afcc26b4098d492220265931a9 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 7 May 2014 08:15:02 -0300 Subject: [PATCH] Variables will be never used --- core/src/main/java/org/keycloak/util/Encode.java | 1 - core/src/main/java/org/keycloak/util/KeycloakUriBuilder.java | 1 - 2 files changed, 2 deletions(-) diff --git a/core/src/main/java/org/keycloak/util/Encode.java b/core/src/main/java/org/keycloak/util/Encode.java index 0f3de011bb..0f3c496a36 100755 --- a/core/src/main/java/org/keycloak/util/Encode.java +++ b/core/src/main/java/org/keycloak/util/Encode.java @@ -221,7 +221,6 @@ public class Encode private static String decodeBytes(String enc, CharsetDecoder decoder) { Matcher matcher = encodedChars.matcher(enc); - StringBuffer buf = new StringBuffer(); ByteBuffer bytes = ByteBuffer.allocate(enc.length() / 3); while (matcher.find()) { diff --git a/core/src/main/java/org/keycloak/util/KeycloakUriBuilder.java b/core/src/main/java/org/keycloak/util/KeycloakUriBuilder.java index a1bed7b643..2742a4eac7 100755 --- a/core/src/main/java/org/keycloak/util/KeycloakUriBuilder.java +++ b/core/src/main/java/org/keycloak/util/KeycloakUriBuilder.java @@ -149,7 +149,6 @@ public class KeycloakUriBuilder { Matcher hostPortMatch = hostPortPattern.matcher(host); if (hostPortMatch.matches()) { this.host = hostPortMatch.group(1); - int val = 0; try { this.port = Integer.parseInt(hostPortMatch.group(2)); } catch (NumberFormatException e) {