Host: Remove now-unused ReadCompressedResourceFile()

This commit is contained in:
Stenzek 2025-06-14 02:25:43 +10:00
parent 9ff3edd317
commit 9c4e15ef1c
No known key found for this signature in database
2 changed files with 0 additions and 16 deletions

View File

@ -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<DynamicHeapArray<u8>> Host::ReadCompressedResourceFile(std::string_view filename, bool allow_override,
Error* error)
{
std::optional<DynamicHeapArray<u8>> 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);

View File

@ -31,10 +31,6 @@ std::optional<std::string> ReadResourceFileToString(std::string_view filename, b
/// Returns the modified time of a resource.
std::optional<std::time_t> GetResourceFileTimestamp(std::string_view filename, bool allow_override);
/// Reads a potentially-compressed file from the resources directory of the application.
std::optional<DynamicHeapArray<u8>> 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);