From 56a2a445372e47cccdbf35249142adfaa44af6cb Mon Sep 17 00:00:00 2001 From: Soonil Nagarkar Date: Fri, 24 Jan 2020 13:12:41 -0800 Subject: Remove setLocationExtra per API feedback Bug: 142828735 Test: atest LocationManagerFineTest Change-Id: I73193dc2484a2b8051c5cff42cd3fcec9a44a015 --- location/java/android/location/Location.java | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'location/java/android') diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index 7a12cee899d8..eb76c29301c6 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -16,7 +16,6 @@ package android.location; -import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.TestApi; import android.compat.annotation.UnsupportedAppUsage; @@ -1213,23 +1212,6 @@ public class Location implements Parcelable { return null; } - /** - * Attaches an extra {@link Location} to this Location. This is useful for location providers - * to set the {@link #EXTRA_NO_GPS_LOCATION} extra to provide coarse locations for clients. - * - * @param key the key associated with the Location extra - * @param value the Location to attach - * @hide - */ - @TestApi - @SystemApi - public void setExtraLocation(@Nullable String key, @Nullable Location value) { - if (mExtras == null) { - mExtras = new Bundle(); - } - mExtras.putParcelable(key, value); - } - /** * Returns true if the Location came from a mock provider. * -- cgit v1.2.3-59-g8ed1b