Remove useless destroyDisplay() method

The method made exactly one simple call. Just make the call directly.
This commit is contained in:
Romain Vimont 2023-01-27 22:27:34 +01:00
parent 75d7c01a0c
commit 91c69ad95c

View File

@ -128,7 +128,7 @@ public class ScreenEncoder implements Device.RotationListener {
} while (alive);
} finally {
device.setRotationListener(null);
destroyDisplay(display);
SurfaceControl.destroyDisplay(display);
}
}
@ -297,8 +297,4 @@ public class ScreenEncoder implements Device.RotationListener {
SurfaceControl.closeTransaction();
}
}
private static void destroyDisplay(IBinder display) {
SurfaceControl.destroyDisplay(display);
}
}