commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [text] AlphabetConverter#createConverterFromMap: remove unused local variable
Date Sat, 22 Apr 2017 13:02:15 GMT
Repository: commons-text
Updated Branches:
  refs/heads/master c9fd6cc68 -> 43b249b20


AlphabetConverter#createConverterFromMap: remove unused local variable


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/43b249b2
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/43b249b2
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/43b249b2

Branch: refs/heads/master
Commit: 43b249b200b5bd901094207461b22144e2c1b56d
Parents: c9fd6cc
Author: Pascal Schumacher <pascalschumacher@gmx.net>
Authored: Sat Apr 22 15:01:48 2017 +0200
Committer: Pascal Schumacher <pascalschumacher@gmx.net>
Committed: Sat Apr 22 15:01:48 2017 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/text/AlphabetConverter.java | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/43b249b2/src/main/java/org/apache/commons/text/AlphabetConverter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/AlphabetConverter.java b/src/main/java/org/apache/commons/text/AlphabetConverter.java
index 27de69a..a216305 100644
--- a/src/main/java/org/apache/commons/text/AlphabetConverter.java
+++ b/src/main/java/org/apache/commons/text/AlphabetConverter.java
@@ -328,7 +328,6 @@ public final class AlphabetConverter {
         final Map<Integer, String> unmodifiableOriginalToEncoded =
                 Collections.unmodifiableMap(originalToEncoded);
         final Map<String, String> encodedToOriginal = new LinkedHashMap<>();
-        final Map<Integer, String> doNotEncodeMap = new HashMap<>();
 
         int encodedLetterLength = 1;
 
@@ -337,10 +336,6 @@ public final class AlphabetConverter {
             final String originalAsString = codePointToString(e.getKey());
             encodedToOriginal.put(e.getValue(), originalAsString);
 
-            if (e.getValue().equals(originalAsString)) {
-                doNotEncodeMap.put(e.getKey(), e.getValue());
-            }
-
             if (e.getValue().length() > encodedLetterLength) {
                 encodedLetterLength = e.getValue().length();
             }


Mime
View raw message