From d3c56b532b3b52dbf958f03cb56c50d6c524d6d9 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Tue, 14 Jun 2016 15:22:07 +1000 Subject: [PATCH] rose build: dedupe hasLastByteHistorySucc func --- src/rose/rose_build_bytecode.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 60df01b7..8b397c52 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -1776,22 +1776,12 @@ u32 addIteratorToTable(build_context &bc, return offset; } -static -bool hasLastByteHistoryOutEdge(const RoseGraph &g, RoseVertex v) { - for (const auto &e : out_edges_range(v, g)) { - if (g[e].history == ROSE_ROLE_HISTORY_LAST_BYTE) { - return true; - } - } - return false; -} - static u32 buildLastByteIter(const RoseGraph &g, build_context &bc) { vector lb_roles; for (auto v : vertices_range(g)) { - if (!hasLastByteHistoryOutEdge(g, v)) { + if (!hasLastByteHistorySucc(g, v)) { continue; } // Eager EOD reporters won't have state indices.