Removing AllApps.getObjectDeprecated()

I was planning to use it from platform tests, but managed to avoid this.

Bug: 110103162
Test: TaplTests
Change-Id: Ic7bd6afe2097d64f8baca59b74d61e2ff7ff9c76
diff --git a/tests/tapl/com/android/launcher3/tapl/AllApps.java b/tests/tapl/com/android/launcher3/tapl/AllApps.java
index c1eba20..d5b2c87 100644
--- a/tests/tapl/com/android/launcher3/tapl/AllApps.java
+++ b/tests/tapl/com/android/launcher3/tapl/AllApps.java
@@ -18,12 +18,11 @@
 
 import static org.junit.Assert.assertTrue;
 
+import androidx.annotation.NonNull;
 import androidx.test.uiautomator.BySelector;
 import androidx.test.uiautomator.Direction;
 import androidx.test.uiautomator.UiObject2;
 
-import androidx.annotation.NonNull;
-
 import com.android.launcher3.TestProtocol;
 
 /**
@@ -135,16 +134,4 @@
         allAppsContainer.fling(Direction.UP, FLING_SPEED);
         verifyActiveContainer();
     }
-
-    /**
-     * Gets the UI object for AllApps.
-     * Used by NexusLauncherStrategy.openAllApps(). No one else should use it.
-     *
-     * @return container object.
-     */
-    @Deprecated
-    @NonNull
-    public UiObject2 getObjectDeprecated() {
-        return verifyActiveContainer();
-    }
 }