Remove useless destroyDisplay() method

The method made exactly one simple call. Just make the call directly.
refactor-encoder
Romain Vimont 1 year ago
parent 75d7c01a0c
commit 91c69ad95c

@ -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);
}
}

Loading…
Cancel
Save