From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Wed, 24 Oct 2018 10:35:52 +0000 (+0900) Subject: [enco] Remove unused reads/updates (#1963) X-Git-Tag: nncc_backup~1473 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c29fc39363882453573aac9ebaed4ecac3c9038;p=platform%2Fcore%2Fml%2Fnnfw.git [enco] Remove unused reads/updates (#1963) This commit removes unused reads/updates helper functions. Signed-off-by: Jonghyun Park --- 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__