From 7c29fc39363882453573aac9ebaed4ecac3c9038 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 24 Oct 2018 19:35:52 +0900 Subject: [PATCH] [enco] Remove unused reads/updates (#1963) This commit removes unused reads/updates helper functions. Signed-off-by: Jonghyun Park --- contrib/enco/core/src/Usage.cpp | 30 ------------------------------ contrib/enco/core/src/Usage.h | 5 ----- 2 files changed, 35 deletions(-) diff --git a/contrib/enco/core/src/Usage.cpp b/contrib/enco/core/src/Usage.cpp index f15ce22..92ccba5 100644 --- a/contrib/enco/core/src/Usage.cpp +++ b/contrib/enco/core/src/Usage.cpp @@ -55,34 +55,4 @@ std::set updaters(const coco::Bag *bag) return res; } -std::set reads(coco::Block *blk) -{ - std::set res; - - for (auto ins = blk->instr()->head(); ins; ins = ins->next()) - { - for (auto bag : ins->reads()) - { - res.insert(bag); - } - } - - return res; -} - -std::set updates(coco::Block *blk) -{ - std::set res; - - for (auto ins = blk->instr()->head(); ins; ins = ins->next()) - { - for (auto bag : ins->updates()) - { - res.insert(bag); - } - } - - return res; -} - } // namespace enco diff --git a/contrib/enco/core/src/Usage.h b/contrib/enco/core/src/Usage.h index 8688a09..8fa05f9 100644 --- a/contrib/enco/core/src/Usage.h +++ b/contrib/enco/core/src/Usage.h @@ -29,11 +29,6 @@ std::set readers(const coco::Bag *bag); /// @brief Return the set of blocks that updates a given bag std::set updaters(const coco::Bag *bag); -/// @brief Returns the set of bags that a given block reads -std::set reads(coco::Block *blk); -/// @brief Returns the set of bags that a given block updates -std::set updates(coco::Block *blk); - } // namespace enco #endif // __ENCO_USAGE_H__ -- 2.7.4