From 8556ab87bc32883f5f01bb701967d9296b6f9b9f Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Fri, 8 Jul 2016 09:57:56 -0400 Subject: [PATCH] Remove unused code from HWUI Layer Change-Id: If9046add5ca5a647351187c5809841edcf0bfa9b --- libs/hwui/Layer.cpp | 2 -- libs/hwui/Layer.h | 6 ------ 2 files changed, 8 deletions(-) diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 8c797d5eebd7d..b911b68252260 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -54,8 +54,6 @@ Layer::~Layer() { if (texture.mId) { texture.deleteTexture(); } - - delete[] mesh; } void Layer::onGlContextLost() { diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index 8ac11d173a168..153184149db63 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -188,12 +188,6 @@ public: */ Rect clipRect; - /** - * If the layer can be rendered as a mesh, this is non-null. - */ - TextureVertex* mesh = nullptr; - GLsizei meshElementCount = 0; - private: Caches& caches;