mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-25 00:22:19 +00:00
Remove useless destroyDisplay() method
The method made exactly one simple call. Just make the call directly.
This commit is contained in:
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…
Reference in New Issue
Block a user