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
1 changed files with 1 additions and 5 deletions
|
@ -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 a new issue