Remove an unused "get number prefix" method

This commit is contained in:
Jon Chambers
2024-11-22 09:47:18 -05:00
committed by Jon Chambers
parent eb55b80bdc
commit 637e424506
2 changed files with 0 additions and 30 deletions

View File

@@ -104,14 +104,6 @@ public class Util {
}
}
public static String getNumberPrefix(String number) {
String countryCode = getCountryCode(number);
int remaining = number.length() - (1 + countryCode.length());
int prefixLength = Math.min(4, remaining);
return number.substring(0, 1 + countryCode.length() + prefixLength);
}
public static byte[] truncate(byte[] element, int length) {
byte[] result = new byte[length];
System.arraycopy(element, 0, result, 0, result.length);