From 5829d2a09acd143154ed1a4649c2fd4ca866b0d8 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:02:49 -0500 Subject: [PATCH] chore: remove unused method asar::ClearArchives() (#43466) chore: remove unused asar::ClearArchives() last use removed in Jun 2021 (b1d1ac65, #29293) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/common/asar/asar_util.cc | 7 ------- shell/common/asar/asar_util.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/shell/common/asar/asar_util.cc b/shell/common/asar/asar_util.cc index 7644b40f578d..e3af9969ffcd 100644 --- a/shell/common/asar/asar_util.cc +++ b/shell/common/asar/asar_util.cc @@ -78,13 +78,6 @@ std::shared_ptr GetOrCreateAsarArchive(const base::FilePath& path) { return nullptr; } -void ClearArchives() { - base::AutoLock auto_lock(GetArchiveCacheLock()); - ArchiveMap& map = GetArchiveCache(); - - map.clear(); -} - bool GetAsarArchivePath(const base::FilePath& full_path, base::FilePath* asar_path, base::FilePath* relative_path, diff --git a/shell/common/asar/asar_util.h b/shell/common/asar/asar_util.h index 31b4cf9990e6..ee148f26d15c 100644 --- a/shell/common/asar/asar_util.h +++ b/shell/common/asar/asar_util.h @@ -20,9 +20,6 @@ struct IntegrityPayload; // Gets or creates and caches a new Archive from the path. std::shared_ptr GetOrCreateAsarArchive(const base::FilePath& path); -// Destroy cached Archive objects. -void ClearArchives(); - // Separates the path to Archive out. bool GetAsarArchivePath(const base::FilePath& full_path, base::FilePath* asar_path,