From: Justin Viiret Date: Wed, 1 Mar 2017 22:51:19 +0000 (+1100) Subject: rose: remove unnecessary engine blob size check X-Git-Tag: v4.5.0^2~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09d19c7c571b7dcb0956c96117fe7f95ce4169f5;p=thirdparty%2Fvectorscan.git rose: remove unnecessary engine blob size check --- diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 222e6926..02107b9d 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -5492,8 +5492,6 @@ aligned_unique_ptr RoseBuildImpl::buildFinalEngine(u32 minWidth) { currOffset = sizeof(RoseEngine); } - UNUSED const size_t engineBlobSize = bc.engine_blob.size(); // test later - currOffset = ROUNDUP_CL(currOffset); DEBUG_PRINTF("currOffset %u\n", currOffset); @@ -5572,10 +5570,6 @@ aligned_unique_ptr RoseBuildImpl::buildFinalEngine(u32 minWidth) { // Copy in the engine blob. bc.engine_blob.write_bytes(engine.get()); - // Safety check: we shouldn't have written anything to the engine blob - // after we copied it into the engine bytecode. - assert(bc.engine_blob.size() == engineBlobSize); - // Add a small write engine if appropriate. engine = addSmallWriteEngine(*this, move(engine));