From 78bd3f0c1bafef36fd8a05af9ebebc50a5724ba8 Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Mon, 14 Sep 2015 02:14:04 +0900 Subject: [PATCH] refs #6: Fix graph analysis to work again. --- include/nba/framework/graphanalysis.hh | 4 ++-- src/lib/graphanalysis.cc | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/include/nba/framework/graphanalysis.hh b/include/nba/framework/graphanalysis.hh index 8573e69..300dac8 100644 --- a/include/nba/framework/graphanalysis.hh +++ b/include/nba/framework/graphanalysis.hh @@ -48,8 +48,8 @@ private: std::vector dbReadBitmap; std::vector dbWriteBitmap; public: - GraphMetaData(); - virtual ~GraphMetaData(); + GraphMetaData() : linear_group(-1) { } + virtual ~GraphMetaData() { } void link(GraphMetaData* child); int get_linear_group(); diff --git a/src/lib/graphanalysis.cc b/src/lib/graphanalysis.cc index e0fd55f..6bd7bff 100644 --- a/src/lib/graphanalysis.cc +++ b/src/lib/graphanalysis.cc @@ -25,16 +25,6 @@ const vector > &GraphAnalyzer::get_linear_groups() return linear_group_set; } -GraphMetaData::GraphMetaData() -{ - this->linear_group = -1; -} - -GraphMetaData::~GraphMetaData() -{ - -} - void GraphMetaData::link(GraphMetaData* child) { this->outEdge.insert(child); @@ -52,7 +42,6 @@ void GraphAnalyzer::analyze(ParseInfo* info) int linear_group_id = 0; int total_modules = click_num_module(info); int total_roots = click_num_root(info); - vector > linear_group_set; /* This loop groups elements into a set of disjoint linear paths. */ for (int root_id = 0; root_id < total_roots; root_id++) {