[enco] Remove unused reads/updates (#1963)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 24 Oct 2018 10:35:52 +0000 (19:35 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 24 Oct 2018 10:35:52 +0000 (19:35 +0900)
This commit removes unused reads/updates helper functions.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/Usage.cpp
contrib/enco/core/src/Usage.h

index f15ce22..92ccba5 100644 (file)
@@ -55,34 +55,4 @@ std::set<coco::Block *> updaters(const coco::Bag *bag)
   return res;
 }
 
-std::set<coco::Bag *> reads(coco::Block *blk)
-{
-  std::set<coco::Bag *> res;
-
-  for (auto ins = blk->instr()->head(); ins; ins = ins->next())
-  {
-    for (auto bag : ins->reads())
-    {
-      res.insert(bag);
-    }
-  }
-
-  return res;
-}
-
-std::set<coco::Bag *> updates(coco::Block *blk)
-{
-  std::set<coco::Bag *> res;
-
-  for (auto ins = blk->instr()->head(); ins; ins = ins->next())
-  {
-    for (auto bag : ins->updates())
-    {
-      res.insert(bag);
-    }
-  }
-
-  return res;
-}
-
 } // namespace enco
index 8688a09..8fa05f9 100644 (file)
@@ -29,11 +29,6 @@ std::set<coco::Block *> readers(const coco::Bag *bag);
 /// @brief Return the set of blocks that updates a given bag
 std::set<coco::Block *> updaters(const coco::Bag *bag);
 
-/// @brief Returns the set of bags that a given block reads
-std::set<coco::Bag *> reads(coco::Block *blk);
-/// @brief Returns the set of bags that a given block updates
-std::set<coco::Bag *> updates(coco::Block *blk);
-
 } // namespace enco
 
 #endif // __ENCO_USAGE_H__