Bug 1257217 - Remove unused method GeckoPreferences.broadcastPrefAction(). r=sebastian
authorDinesh Polathula <dpdineshp2@gmail.com>
Mon, 04 Apr 2016 13:59:52 +0200
changeset 291478 7909460567c8f6c05c82d2675ddf6ee970ef1a21
parent 291477 6fc436f9db859d961581a5f27bbb69731679f593
child 291479 43360777775c3049b405168c2b303941cd74b9de
push id18508
push users.kaspari@gmail.com
push dateMon, 04 Apr 2016 12:01:52 +0000
treeherderfx-team@7909460567c8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1257217
milestone48.0a1
Bug 1257217 - Remove unused method GeckoPreferences.broadcastPrefAction(). r=sebastian MozReview-Commit-ID: FHJqGzyACiF
mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
--- a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
+++ b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
@@ -958,35 +958,16 @@ OnSharedPreferenceChangeListener
         return sIsCharEncodingEnabled;
     }
 
     public static void broadcastAction(final Context context, final Intent intent) {
         fillIntentWithProfileInfo(context, intent);
         context.sendBroadcast(intent, GlobalConstants.PER_ANDROID_PACKAGE_PERMISSION);
     }
 
-    /**
-     * Broadcast an intent with <code>pref</code>, <code>branch</code>, and
-     * <code>enabled</code> extras. This is intended to represent the
-     * notification of a preference value to observers.
-     *
-     * The broadcast will be sent only to receivers registered with the
-     * (Fennec-specific) per-Android package permission.
-     */
-    public static void broadcastPrefAction(final Context context,
-                                           final String action,
-                                           final String pref,
-                                           final boolean value) {
-        final Intent intent = new Intent(action)
-                .putExtra("pref", pref)
-                .putExtra("branch", GeckoSharedPrefs.APP_PREFS_NAME)
-                .putExtra("enabled", value);
-        broadcastAction(context, intent);
-    }
-
     private static void fillIntentWithProfileInfo(final Context context, final Intent intent) {
         // There is a race here, but GeckoProfile returns the default profile
         // when Gecko is not explicitly running for a different profile.  In a
         // multi-profile world, this will need to be updated (possibly to
         // broadcast settings for all profiles).  See Bug 882182.
         GeckoProfile profile = GeckoProfile.get(context);
         if (profile != null) {
             intent.putExtra("profileName", profile.getName())