diff --git a/src/compiler/compiler.cpp b/src/compiler/compiler.cpp index b2deae32..9b726f77 100644 --- a/src/compiler/compiler.cpp +++ b/src/compiler/compiler.cpp @@ -362,7 +362,7 @@ struct hs_database *build(NG &ng, unsigned int *length) { if (!rose) { throw CompileError("Unable to generate bytecode."); } - *length = roseSize(rose.get()); + *length = rose.size(); if (!*length) { DEBUG_PRINTF("RoseEngine has zero length\n"); assert(0); diff --git a/src/rose/rose_build.h b/src/rose/rose_build.h index a14ea8ff..cbb925f7 100644 --- a/src/rose/rose_build.h +++ b/src/rose/rose_build.h @@ -134,8 +134,6 @@ std::unique_ptr makeRoseBuilder(ReportManager &rm, bool roseCheckRose(const RoseInGraph &ig, bool prefilter, const ReportManager &rm, const CompileContext &cc); -size_t roseSize(const RoseEngine *t); - /* used by heuristics to determine the small write engine. High numbers are * intended to indicate a lightweight rose. */ u32 roseQuality(const RoseEngine *t); diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 98e1ef70..dad00cd6 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -5603,7 +5603,7 @@ bytecode_ptr addSmallWriteEngine(const RoseBuildImpl &build, return rose; } - const size_t mainSize = roseSize(rose.get()); + const size_t mainSize = rose.size(); const size_t smallWriteSize = smwr_engine.size(); DEBUG_PRINTF("adding smwr engine, size=%zu\n", smallWriteSize); diff --git a/src/rose/rose_build_misc.cpp b/src/rose/rose_build_misc.cpp index ef650714..1e353a58 100644 --- a/src/rose/rose_build_misc.cpp +++ b/src/rose/rose_build_misc.cpp @@ -239,11 +239,6 @@ unique_ptr makeRoseBuilder(ReportManager &rm, return ue2::make_unique(rm, ssm, smwr, cc, boundary); } -size_t roseSize(const RoseEngine *t) { - assert(t); - return t->size; -} - bool roseIsPureLiteral(const RoseEngine *t) { return t->runtimeImpl == ROSE_RUNTIME_PURE_LITERAL; }