diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/SystemUI.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/SystemUI.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SystemUI.java b/packages/SystemUI/src/com/android/systemui/SystemUI.java index 75700379caca..f795faf30603 100644 --- a/packages/SystemUI/src/com/android/systemui/SystemUI.java +++ b/packages/SystemUI/src/com/android/systemui/SystemUI.java @@ -23,11 +23,9 @@ import android.os.Bundle; import java.io.FileDescriptor; import java.io.PrintWriter; -import java.util.Map; -public abstract class SystemUI implements SysUiServiceProvider { +public abstract class SystemUI { protected final Context mContext; - public Map<Class<?>, Object> mComponents; public SystemUI(Context context) { mContext = context; @@ -44,17 +42,6 @@ public abstract class SystemUI implements SysUiServiceProvider { protected void onBootCompleted() { } - @SuppressWarnings("unchecked") - public <T> T getComponent(Class<T> interfaceType) { - return (T) (mComponents != null ? mComponents.get(interfaceType) : null); - } - - public <T, C extends T> void putComponent(Class<T> interfaceType, C component) { - if (mComponents != null) { - mComponents.put(interfaceType, component); - } - } - public static void overrideNotificationAppName(Context context, Notification.Builder n, boolean system) { final Bundle extras = new Bundle(); |