From 9c4e15ef1c9bda2917a5c45f663795fedc567a29 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 14 Jun 2025 02:25:43 +1000 Subject: [PATCH] Host: Remove now-unused ReadCompressedResourceFile() --- src/core/host.cpp | 12 ------------ src/util/host.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/src/core/host.cpp b/src/core/host.cpp index 0c530fde4..8875e1a7c 100644 --- a/src/core/host.cpp +++ b/src/core/host.cpp @@ -8,8 +8,6 @@ #include "scmversion/scmversion.h" -#include "util/compress_helpers.h" - #include "common/assert.h" #include "common/error.h" #include "common/file_system.h" @@ -111,16 +109,6 @@ SettingsInterface* Host::GetSettingsInterface() return &s_layered_settings_interface; } -std::optional> Host::ReadCompressedResourceFile(std::string_view filename, bool allow_override, - Error* error) -{ - std::optional> ret = Host::ReadResourceFile(filename, allow_override, error); - if (ret.has_value()) - ret = CompressHelpers::DecompressFile(filename, std::move(ret), std::nullopt, error); - - return ret; -} - std::string Host::GetBaseStringSettingValue(const char* section, const char* key, const char* default_value /*= ""*/) { std::unique_lock lock(s_settings_mutex); diff --git a/src/util/host.h b/src/util/host.h index 0b1fa348d..5aecc49bc 100644 --- a/src/util/host.h +++ b/src/util/host.h @@ -31,10 +31,6 @@ std::optional ReadResourceFileToString(std::string_view filename, b /// Returns the modified time of a resource. std::optional GetResourceFileTimestamp(std::string_view filename, bool allow_override); -/// Reads a potentially-compressed file from the resources directory of the application. -std::optional> ReadCompressedResourceFile(std::string_view filename, bool allow_override, - Error* error = nullptr); - /// Reports a fatal error on the main thread. This does not assume that the main window exists, /// unlike ReportErrorAsync(), and will exit the application after the popup is closed. void ReportFatalError(std::string_view title, std::string_view message);