diff options
author | Michael Plass <mplass@google.com> | 2018-05-21 12:51:05 -0700 |
---|---|---|
committer | Michael Plass <mplass@google.com> | 2018-05-21 12:51:05 -0700 |
commit | dacacbf69da8844232d938437b3b38471a3d2827 (patch) | |
tree | 739dd040633c9180d34a1b9def3922a543e72363 /service | |
parent | a332e6d65efbee41e08b86d56394db4431ca6e86 (diff) |
Remove wifi/ScoringParams.hexDigest
Did not actually use this, so gc the method.
Bug: 79482323
Test: Unit tests
Change-Id: Ibdc44b7a5753b2670061958417eab0a737a8fc51
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/ScoringParams.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/service/java/com/android/server/wifi/ScoringParams.java b/service/java/com/android/server/wifi/ScoringParams.java index 6c42faf6b..8f68627b7 100644 --- a/service/java/com/android/server/wifi/ScoringParams.java +++ b/service/java/com/android/server/wifi/ScoringParams.java @@ -27,11 +27,6 @@ import android.util.Log; import com.android.internal.R; -import libcore.util.HexEncoding; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - /** * Holds parameters used for scoring networks. * @@ -391,17 +386,4 @@ public class ScoringParams { public String toString() { return mVal.toString(); } - - /** - * Calculates the SHA-256 digest of the scoring params, encoded in hex. - */ - public String hexDigest() { - String digest = null; - try { - MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); - messageDigest.update(mVal.toString().getBytes()); - digest = HexEncoding.encodeToString(messageDigest.digest()); - } catch (NoSuchAlgorithmException e) { } - return digest; - } } |