[Scummvm-git-logs] scummvm master -> 43a3aad4566df5cb106771d325be73e01875d3c3
sluicebox
noreply at scummvm.org
Sat Oct 28 03:50:14 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
43a3aad456 COMMON: Remove unused field from Gentee Installer code
Commit: 43a3aad4566df5cb106771d325be73e01875d3c3
https://github.com/scummvm/scummvm/commit/43a3aad4566df5cb106771d325be73e01875d3c3
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-10-27T20:45:09-07:00
Commit Message:
COMMON: Remove unused field from Gentee Installer code
Fixes unused private field warning
Changed paths:
common/compression/gentee_installer.cpp
diff --git a/common/compression/gentee_installer.cpp b/common/compression/gentee_installer.cpp
index 618832e5844..620482e2ab7 100644
--- a/common/compression/gentee_installer.cpp
+++ b/common/compression/gentee_installer.cpp
@@ -435,7 +435,7 @@ byte DecompressorState::g_matchVLCLengths[DecompressorState::kNumMatchVLCs] = {
class DecompressingStream : public Common::SeekableReadStream {
public:
- DecompressingStream(Common::SeekableReadStream *baseStream, uint32 compressedSize, uint32 decompressedSize);
+ DecompressingStream(Common::SeekableReadStream *baseStream, uint32 decompressedSize);
~DecompressingStream();
int64 pos() const override;
@@ -455,14 +455,13 @@ private:
Common::SeekableReadStream *_baseStream;
uint32 _pos;
- uint32 _compressedSize;
uint32 _decompressedSize;
bool _eosFlag;
bool _errFlag;
};
-DecompressingStream::DecompressingStream(Common::SeekableReadStream *baseStream, uint32 compressedSize, uint32 decompressedSize)
- : _baseStream(baseStream), _compressedSize(compressedSize), _decompressedSize(decompressedSize), _pos(0), _eosFlag(false), _errFlag(false), _decomp(baseStream) {
+DecompressingStream::DecompressingStream(Common::SeekableReadStream *baseStream, uint32 decompressedSize)
+ : _baseStream(baseStream), _decompressedSize(decompressedSize), _pos(0), _eosFlag(false), _errFlag(false), _decomp(baseStream) {
}
DecompressingStream::~DecompressingStream() {
@@ -619,7 +618,7 @@ Common::SeekableReadStream *ArchiveItem::createReadStream() const {
sliceSubstream = Common::wrapBufferedSeekableReadStream(sliceSubstream, 4096, DisposeAfterUse::YES);
if (_isCompressed)
- return new DecompressingStream(sliceSubstream, _compressedSize, _decompressedSize);
+ return new DecompressingStream(sliceSubstream, _decompressedSize);
else
return sliceSubstream;
}
More information about the Scummvm-git-logs
mailing list