Skip to content

Commit 12cb31c

Browse files
committed
The local variable tmpS is never read.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130369 13f79535-47bb-0310-9956-ffa450edef68
1 parent 625914d commit 12cb31c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* <i>Computer Language</i> of Dec. 1990, p 39
2929
*
3030
* @author Apache Software Foundation
31-
* @version $Id: Metaphone.java,v 1.16 2004/04/18 21:33:38 tobrien Exp $
31+
* @version $Id: Metaphone.java,v 1.17 2004/05/24 00:19:13 ggregory Exp $
3232
*/
3333
public class Metaphone implements StringEncoder {
3434

@@ -81,7 +81,6 @@ public String metaphone(String txt) {
8181

8282
char[] inwd = txt.toUpperCase().toCharArray() ;
8383

84-
String tmpS ;
8584
StringBuffer local = new StringBuffer(40); // manipulate
8685
StringBuffer code = new StringBuffer(10) ; // output
8786
// handle initial 2 characters exceptions
@@ -153,7 +152,6 @@ public String metaphone(String txt) {
153152
(this.frontv.indexOf(local.charAt(n + 1)) >= 0) ) {
154153
break;
155154
}
156-
tmpS = local.toString();
157155
if (regionMatch(local, n, "CIA")) { // "CIA" -> X
158156
code.append('X');
159157
break;
@@ -199,7 +197,6 @@ public String metaphone(String txt) {
199197
!isVowel(local,n+2)) {
200198
break;
201199
}
202-
tmpS = local.toString();
203200
if ((n > 0) &&
204201
( regionMatch(local, n, "GN") ||
205202
regionMatch(local, n, "GNED") ) ) {

0 commit comments

Comments
 (0)