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,