From b5cd4cc2d96390eaeb509051010b02bfb55ad7d5 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Mon, 16 Nov 2020 23:08:18 +0000 Subject: Revert^2 "Do not cache bag parent stack until requested" 06a7331b84ceb4b39d39e4af187d1f988475893a Change-Id: Ib1db7cafd40408af248c9cda0c2ffaec065ef606 --- libs/androidfw/AssetManager2.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/androidfw/AssetManager2.cpp') diff --git a/libs/androidfw/AssetManager2.cpp b/libs/androidfw/AssetManager2.cpp index a545b3d5e134..8c2a632b9fd7 100644 --- a/libs/androidfw/AssetManager2.cpp +++ b/libs/androidfw/AssetManager2.cpp @@ -1041,9 +1041,7 @@ base::expected AssetManager2::ResolveBag( base::expected AssetManager2::GetBag(uint32_t resid) const { std::vector found_resids; - const auto bag = GetBag(resid, found_resids); - cached_bag_resid_stacks_.emplace(resid, found_resids); - return bag; + return GetBag(resid, found_resids); } base::expected AssetManager2::GetBag( -- cgit v1.2.3-59-g8ed1b