Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db74218a authored by Eric Biggers's avatar Eric Biggers
Browse files

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
parent 3820160a
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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;
    }
}