From 8cafcc628fc2eea5b25bb0409eb7ed2a76befb2b Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 3 May 2018 11:32:46 -0400 Subject: remove (dead) caches from hwui Test: make Change-Id: I18bfe51896672272ce7d471eaead69b651399368 --- libs/hwui/ResourceCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/ResourceCache.cpp') diff --git a/libs/hwui/ResourceCache.cpp b/libs/hwui/ResourceCache.cpp index d60b99469368..464a58d0c0f8 100644 --- a/libs/hwui/ResourceCache.cpp +++ b/libs/hwui/ResourceCache.cpp @@ -113,7 +113,7 @@ void ResourceCache::destructorLocked(Res_png_9patch* resource) { if (ref == nullptr) { // If we're not tracking this resource, just delete it if (Caches::hasInstance()) { - Caches::getInstance().patchCache.removeDeferred(resource); + // DEAD CODE } else { // A Res_png_9patch is actually an array of byte that's larger // than sizeof(Res_png_9patch). It must be freed as an array. @@ -136,7 +136,7 @@ void ResourceCache::deleteResourceReferenceLocked(const void* resource, Resource switch (ref->resourceType) { case kNinePatch: { if (Caches::hasInstance()) { - Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*)resource); + // DEAD CODE } else { // A Res_png_9patch is actually an array of byte that's larger // than sizeof(Res_png_9patch). It must be freed as an array. -- cgit v1.2.3-59-g8ed1b