Skip to content

Commit 3c47617

Browse files
committed
Removed hexDigest helper only used with hash email
1 parent 567e98a commit 3c47617

File tree

1 file changed

+0
-16
lines changed
  • OneSignalSDK/onesignal/src/main/java/com/onesignal

1 file changed

+0
-16
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OSUtils.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import org.json.JSONException;
5858
import org.json.JSONObject;
5959

60-
import java.security.MessageDigest;
6160
import java.util.ArrayList;
6261
import java.util.Collection;
6362
import java.util.Collections;
@@ -537,21 +536,6 @@ static long[] parseVibrationPattern(JSONObject fcmBundle) {
537536
return null;
538537
}
539538

540-
static String hexDigest(String str, String digestInstance) throws Throwable {
541-
MessageDigest digest = java.security.MessageDigest.getInstance(digestInstance);
542-
digest.update(str.getBytes("UTF-8"));
543-
byte messageDigest[] = digest.digest();
544-
545-
StringBuilder hexString = new StringBuilder();
546-
for (byte aMessageDigest : messageDigest) {
547-
String h = Integer.toHexString(0xFF & aMessageDigest);
548-
while (h.length() < 2)
549-
h = "0" + h;
550-
hexString.append(h);
551-
}
552-
return hexString.toString();
553-
}
554-
555539
static void sleep(int ms) {
556540
try {
557541
Thread.sleep(ms);

0 commit comments

Comments
 (0)