summaryrefslogtreecommitdiff
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2016-12-02 10:22:57 -0800
committer John Reck <jreck@google.com> 2016-12-09 22:04:53 +0000
commit03240107a54c8a0ad1e7e496c81182eb5a086f89 (patch)
treebefc2f5b366936c1692a11c185e418c810dd0418 /libs/hwui/PatchCache.cpp
parentce44045d855586394e5b023d1cee69c5fd9dce6d (diff)
Delete dead code
Test: none, it's unused code Change-Id: If25f4f22d8f3a9819f673bacce9ad4c213dd73ed
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 52c62cc34670..983c17e92266 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -36,8 +36,7 @@ PatchCache::PatchCache(RenderState& renderState)
, mSize(0)
, mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity)
, mMeshBuffer(0)
- , mFreeBlocks(nullptr)
- , mGenerationId(0) {}
+ , mFreeBlocks(nullptr) {}
PatchCache::~PatchCache() {
clear();
@@ -158,7 +157,6 @@ void PatchCache::createVertexBuffer() {
mMaxSize, nullptr, GL_DYNAMIC_DRAW);
mSize = 0;
mFreeBlocks = new BufferBlock(0, mMaxSize);
- mGenerationId++;
}
/**