diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index c66561bf4e..b25810e079 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -79,19 +79,6 @@ static std::vector DecompressSegment(const std::vector& compressed_data, return uncompressed_data; } -static std::vector ReadSegment(FileUtil::IOFile& file, const NsoSegmentHeader& header, - size_t compressed_size) { - std::vector compressed_data(compressed_size); - - file.Seek(header.offset, SEEK_SET); - if (compressed_size != file.ReadBytes(compressed_data.data(), compressed_size)) { - LOG_CRITICAL(Loader, "Failed to read {} NSO LZ4 compressed bytes", compressed_size); - return {}; - } - - return DecompressSegment(compressed_data, header); -} - static constexpr u32 PageAlignSize(u32 size) { return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK; }