JAVA: Remove unused imports.
authortronikos@gmail.com <tronikos@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Tue, 27 Mar 2012 11:59:36 +0000 (11:59 +0000)
committertronikos@gmail.com <tronikos@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Tue, 27 Mar 2012 11:59:36 +0000 (11:59 +0000)
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@436 ee073f10-1060-11df-b6a4-87a95322a99c

java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberUtil.java
java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java
java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java
java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java
java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberUtilTest.java
java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java

index 9ae0380..3af06bf 100644 (file)
@@ -650,13 +650,13 @@ public class PhoneNumberUtil {
         // We assume that the first-group symbol will never be _before_ the national prefix.
         candidateNationalPrefixRule =
             candidateNationalPrefixRule.substring(0, candidateNationalPrefixRule.indexOf("$1"));
-        candidateNationalPrefixRule = util.normalizeDigitsOnly(candidateNationalPrefixRule);
+        candidateNationalPrefixRule = normalizeDigitsOnly(candidateNationalPrefixRule);
         if (candidateNationalPrefixRule.length() == 0) {
           // National Prefix not needed for this number.
           return true;
         }
         // Normalize the remainder.
-        String rawInputCopy = util.normalizeDigitsOnly(number.getRawInput());
+        String rawInputCopy = normalizeDigitsOnly(number.getRawInput());
         StringBuilder rawInput = new StringBuilder(rawInputCopy);
         // Check if we found a national prefix and/or carrier code at the start of the raw input,
         // and return the result.
index 2a23d7c..c67fa36 100644 (file)
@@ -17,7 +17,6 @@
 package com.google.i18n.phonenumbers;
 
 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
-import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
 
 import java.util.regex.Pattern;
 
index 30a8fab..626d65a 100644 (file)
@@ -19,8 +19,6 @@ package com.google.i18n.phonenumbers;
 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
 
-import junit.framework.TestCase;
-
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Iterator;
index fd15168..7c5837b 100644 (file)
@@ -23,8 +23,6 @@ import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
 
-import junit.framework.TestCase;
-
 import java.util.ArrayList;
 import java.util.List;
 
index c6d2c74..682e872 100644 (file)
 
 package com.google.i18n.phonenumbers;
 
-import junit.framework.TestCase;
-
-import java.io.InputStream;
-
 /**
  * Unit tests for ShortNumberUtil.java
  *
index 4577125..17131b4 100644 (file)
@@ -18,9 +18,6 @@ package com.google.i18n.phonenumbers;
 
 import junit.framework.TestCase;
 
-import java.io.IOException;
-import java.io.InputStream;
-
 /**
  * Root class for PhoneNumberUtil tests that depend on the test metadata file.
  * <p>