diff options
author | 2019-06-07 17:08:53 -0700 | |
---|---|---|
committer | 2019-06-10 14:12:30 -0700 | |
commit | e8097ca7c5e00ed61d7f604d8eda8d2fe2d2fa9b (patch) | |
tree | d1a1fdadb133d006298ea95cbe7a677bb0e7935b /libs/gui/SurfaceControl.cpp | |
parent | f92661b58260a3a5901f733f43f8ac37e9ffc338 (diff) |
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
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r-- | libs/gui/SurfaceControl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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 |