Remove getSfInstance from InputConsumerController

It is dead code, not used anywhere.

Test: build
Bug: 162235855
Change-Id: I857c6f7a2e4577f51434ffd9a215238b5ff4ddb3
This commit is contained in:
Ady Abraham
2022-02-23 18:07:38 -08:00
parent b031e08104
commit bbf0c85269

View File

@@ -17,7 +17,6 @@
package com.android.systemui.shared.system;
import static android.view.Display.DEFAULT_DISPLAY;
import static android.view.WindowManager.INPUT_CONSUMER_PIP;
import static android.view.WindowManager.INPUT_CONSUMER_RECENTS_ANIMATION;
import android.os.Binder;
@@ -137,14 +136,6 @@ public class InputConsumerController {
* Registers the input consumer.
*/
public void registerInputConsumer() {
registerInputConsumer(false);
}
/**
* Registers the input consumer.
* @param withSfVsync the flag set using sf vsync signal or no
*/
public void registerInputConsumer(boolean withSfVsync) {
if (mInputEventReceiver == null) {
final InputChannel inputChannel = new InputChannel();
try {
@@ -154,7 +145,7 @@ public class InputConsumerController {
Log.e(TAG, "Failed to create input consumer", e);
}
mInputEventReceiver = new InputEventReceiver(inputChannel, Looper.myLooper(),
withSfVsync ? Choreographer.getSfInstance() : Choreographer.getInstance());
Choreographer.getInstance());
if (mRegistrationListener != null) {
mRegistrationListener.onRegistrationChanged(true /* isRegistered */);
}