From e8097ca7c5e00ed61d7f604d8eda8d2fe2d2fa9b Mon Sep 17 00:00:00 2001 From: chaviw Date: Fri, 7 Jun 2019 17:08:53 -0700 Subject: Remove SurfaceControl.destroy function The destroy function was only used temporarily instead of all call points calling reparent(null) explicitly. Removing the Java destroy request so no need for the SurfaceControl.destroy method anymore. Test: SurfaceControlTest Change-Id: If69e030f3babf83a6382f85a26f0bb1eb451dc23 --- libs/gui/SurfaceControl.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libs/gui/SurfaceControl.cpp') diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 55488dad0b..011854edbb 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -71,14 +71,6 @@ SurfaceControl::~SurfaceControl() release(); } -void SurfaceControl::destroy() -{ - if (isValid()) { - SurfaceComposerClient::Transaction().reparent(this, nullptr).apply(); - } - release(); -} - void SurfaceControl::release() { // Trigger an IPC now, to make sure things -- cgit v1.2.3-59-g8ed1b