mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:36:53 +00:00
Remove an unused "get number prefix" method
This commit is contained in:
1 parent
eb55b80bdc
commit
637e424506
2 files changed
-30
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user