From 008e9ae337a84d508734e58cb1c454bb9ec15785 Mon Sep 17 00:00:00 2001 From: Dominik Wernberger Date: Thu, 20 Jun 2024 00:46:43 +0200 Subject: [PATCH] Simplification --- src/Streams/StreamCache.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Streams/StreamCache.cpp b/src/Streams/StreamCache.cpp index 180089d..9b326ac 100644 --- a/src/Streams/StreamCache.cpp +++ b/src/Streams/StreamCache.cpp @@ -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) @@ -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();