Remove useless destroyDisplay() method
The method made exactly one simple call. Just make the call directly.
This commit is contained in:
@@ -128,7 +128,7 @@ public class ScreenEncoder implements Device.RotationListener {
|
|||||||
} while (alive);
|
} while (alive);
|
||||||
} finally {
|
} finally {
|
||||||
device.setRotationListener(null);
|
device.setRotationListener(null);
|
||||||
destroyDisplay(display);
|
SurfaceControl.destroyDisplay(display);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,8 +297,4 @@ public class ScreenEncoder implements Device.RotationListener {
|
|||||||
SurfaceControl.closeTransaction();
|
SurfaceControl.closeTransaction();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void destroyDisplay(IBinder display) {
|
|
||||||
SurfaceControl.destroyDisplay(display);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user