aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/memstream.h4
-rw-r--r--common/stream.cpp7
2 files changed, 0 insertions, 11 deletions
diff --git a/common/memstream.h b/common/memstream.h
index 0cb88b6126..5ba259b842 100644
--- a/common/memstream.h
+++ b/common/memstream.h
@@ -40,7 +40,6 @@ private:
const byte *_ptr;
const uint32 _size;
uint32 _pos;
- byte _encbyte;
DisposeAfterUse::Flag _disposeMemory;
bool _eos;
@@ -56,7 +55,6 @@ public:
_ptr(dataPtr),
_size(dataSize),
_pos(0),
- _encbyte(0),
_disposeMemory(disposeMemory),
_eos(false) {}
@@ -65,8 +63,6 @@ public:
free(const_cast<byte *>(_ptrOrig));
}
- void setEnc(byte value) { _encbyte = value; }
-
uint32 read(void *dataPtr, uint32 dataSize);
bool eos() const { return _eos; }
diff --git a/common/stream.cpp b/common/stream.cpp
index 89653592f4..c0783b2352 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -52,13 +52,6 @@ uint32 MemoryReadStream::read(void *dataPtr, uint32 dataSize) {
}
memcpy(dataPtr, _ptr, dataSize);
- if (_encbyte) {
- byte *p = (byte *)dataPtr;
- byte *end = p + dataSize;
- while (p < end)
- *p++ ^= _encbyte;
- }
-
_ptr += dataSize;
_pos += dataSize;