Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jun 19, 2024
1 parent d01a2ed commit 008e9ae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Streams/StreamCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ void StreamCache::read(FileFormatVersion /* aVersion */)
mCtx.mLogger.trace("iteration i = {}", i);

const bool hasStrAfter8Byte = parser.tryRead([&](){ ds.readBytes(8U); ds.readStringLenZeroTerm(); });
const bool hasStrAfter2Byte = parser.tryRead([&](){ ds.readBytes(2U); ds.readStringLenZeroTerm(); });
const bool hasStrAfter0Byte = parser.tryRead([&](){ ds.readBytes(0U); ds.readStringLenZeroTerm(); });

mCtx.mLogger.trace("hasStrAfter8Byte = {}", hasStrAfter8Byte);
mCtx.mLogger.trace("hasStrAfter2Byte = {}", hasStrAfter2Byte);
mCtx.mLogger.trace("hasStrAfter0Byte = {}", hasStrAfter0Byte);

if(!hasStrAfter0Byte)
Expand All @@ -51,10 +49,7 @@ void StreamCache::read(FileFormatVersion /* aVersion */)
mCtx.mLogger.trace("someRefDes = {}", someRefDes);
}

if(hasStrAfter2Byte)
{
ds.printUnknownData(2U, getMethodName(this, __func__) + ": 10");
}
ds.printUnknownData(2U, getMethodName(this, __func__) + ": 10");
}

const std::string name = ds.readStringLenZeroTerm();
Expand Down

0 comments on commit 008e9ae

Please sign in to comment.