From b3075273fb106e306b1dbab690c5f86eb5c14ba5 Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Thu, 4 Jun 2020 09:25:15 -0700 Subject: [PATCH] Remove dead code. ActivityManager.getMaxNumPictureInPictureActions() was marked @removed in Oreo and isn't referenced anywhere else. Bug: 135214188 Test: Android builds Change-Id: I2dfa1e3e26a5c0cfc7bc03efc123b5e3f54fd6c4 --- api/removed.txt | 4 ---- core/java/android/app/ActivityManager.java | 6 ------ non-updatable-api/removed.txt | 4 ---- 3 files changed, 14 deletions(-) diff --git a/api/removed.txt b/api/removed.txt index 985b92bef4ae2..2521534ce91c7 100644 --- a/api/removed.txt +++ b/api/removed.txt @@ -1,10 +1,6 @@ // Signature format: 2.0 package android.app { - public class ActivityManager { - method @Deprecated public static int getMaxNumPictureInPictureActions(); - } - public class Notification implements android.os.Parcelable { method @Deprecated public String getChannel(); method public static Class getNotificationStyleClass(String); diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 39ee345fffaa7..8c4f743b47967 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -1053,12 +1053,6 @@ public class ActivityManager { return ActivityTaskManager.getMaxRecentTasksStatic(); } - /** @removed */ - @Deprecated - public static int getMaxNumPictureInPictureActions() { - return 3; - } - /** * Information you can set and retrieve about the current activity within the recent task list. */ diff --git a/non-updatable-api/removed.txt b/non-updatable-api/removed.txt index fb0e5c7867b7b..6d99ccd054c7e 100644 --- a/non-updatable-api/removed.txt +++ b/non-updatable-api/removed.txt @@ -1,10 +1,6 @@ // Signature format: 2.0 package android.app { - public class ActivityManager { - method @Deprecated public static int getMaxNumPictureInPictureActions(); - } - public class Notification implements android.os.Parcelable { method @Deprecated public String getChannel(); method public static Class getNotificationStyleClass(String);