Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5cd4cc2 authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

Revert^2 "Do not cache bag parent stack until requested"

06a7331b

Change-Id: Ib1db7cafd40408af248c9cda0c2ffaec065ef606
parent 016f9e65
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1041,9 +1041,7 @@ base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag(


base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const {
base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const {
  std::vector<uint32_t> found_resids;
  std::vector<uint32_t> found_resids;
  const auto bag = GetBag(resid, found_resids);
  return GetBag(resid, found_resids);
  cached_bag_resid_stacks_.emplace(resid, found_resids);
  return bag;
}
}


base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(
base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(