From db74218a23f70e3d37451a5032c3ccc9cfee2838 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 10 Apr 2024 13:52:13 +0000 Subject: Remove android.security.KeyStore#getInstance() This method no longer has any callers, so remove it. (As with other methods in android.security.KeyStore, this did have @UnsupportedAppUsage. However, there is no reason for apps to use this. Therefore, removing it is allowed by the non-SDK interface policy.) Bug: 326508120 Test: Build Change-Id: I76facc1d54bf656188d1d4c5745224fc49836132 --- keystore/java/android/security/KeyStore.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/keystore/java/android/security/KeyStore.java b/keystore/java/android/security/KeyStore.java index 2f2215fd51a2..d1d7c145680f 100644 --- a/keystore/java/android/security/KeyStore.java +++ b/keystore/java/android/security/KeyStore.java @@ -16,8 +16,6 @@ package android.security; -import android.compat.annotation.UnsupportedAppUsage; - /** * This class provides some constants and helper methods related to Android's Keystore service. * This class was originally much larger, but its functionality was superseded by other classes. @@ -30,11 +28,4 @@ public class KeyStore { // Used for UID field to indicate the calling UID. public static final int UID_SELF = -1; - - private static final KeyStore KEY_STORE = new KeyStore(); - - @UnsupportedAppUsage - public static KeyStore getInstance() { - return KEY_STORE; - } } -- cgit v1.2.3-59-g8ed1b