Merge "Revert "surfaceflinger: clear HWC layers in Layer::onRemoved"" into oc-dev
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 89ba2ee..06a0765 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -296,9 +296,6 @@
     }
 
     mSurfaceFlingerConsumer->abandon();
-
-    clearHwcLayers();
-
     for (const auto& child : mCurrentChildren) {
         child->onRemoved();
     }