Remove useless and broken CTS test

Bug: 255479130
Test: atest GeocoderTest
(cherry picked from commit cb7a8edc9b545489b8e7ebeb895d857e2b1a267a)
Merged-In: Iaba4cd6bf90ba5df968f1a2218559851b5daba61

Change-Id: I8924d1c0b24e5bb554068d700fe56e2d2f82ef39
diff --git a/tests/location/location_fine/src/android/location/cts/fine/GeocoderTest.java b/tests/location/location_fine/src/android/location/cts/fine/GeocoderTest.java
index 3f9bac1..b1930c4 100644
--- a/tests/location/location_fine/src/android/location/cts/fine/GeocoderTest.java
+++ b/tests/location/location_fine/src/android/location/cts/fine/GeocoderTest.java
@@ -16,14 +16,9 @@
 
 package android.location.cts.fine;
 
-
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 import android.content.Context;
-import android.content.Intent;
-import android.content.pm.PackageManager;
 import android.location.Geocoder;
 import android.platform.test.annotations.AppModeFull;
 
@@ -64,15 +59,6 @@
         }
     }
 
-    @Test
-    public void testIsPresent() {
-        if (isServiceMissing()) {
-            assertFalse(Geocoder.isPresent());
-        } else {
-            assertTrue(Geocoder.isPresent());
-        }
-    }
-
     @AppModeFull(reason = "b/238831704 - Test cases don't apply for Instant apps")
     @Test
     public void testGetFromLocation() throws IOException, InterruptedException {
@@ -192,13 +178,4 @@
             // pass
         }
     }
-
-    private boolean isServiceMissing() {
-        PackageManager pm = mContext.getPackageManager();
-
-        final Intent intent = new Intent("com.android.location.service.GeocodeProvider");
-        final int flags = PackageManager.MATCH_DIRECT_BOOT_AWARE
-                | PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
-        return pm.queryIntentServices(intent, flags).isEmpty();
-    }
 }