[enco] Eliminate unused argument of ANNOpBuilder constructor (#1775)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 8 Oct 2018 05:46:46 +0000 (14:46 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 8 Oct 2018 05:46:46 +0000 (14:46 +0900)
ANNOpBuilder currently takes coco::Data *, but it is not used anymore.

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

index d9c54d2..446a429 100644 (file)
@@ -33,13 +33,6 @@ using Appender = std::function<void(ANNBinder *binder)>;
 class ANNOpBuilder : public coco::Instr::Visitor<Appender>
 {
 public:
-  // TODO Revise this constructor
-  ANNOpBuilder(coco::Data *data)
-  {
-    // DO NOTHING
-  }
-
-public:
   Appender visit(const coco::UnitF *unit)
   {
     if (auto conv = unit->op()->asConv2D())
@@ -443,7 +436,7 @@ void ANNGroupBuilder::build(void) const
   auto m = _code->module();
   auto d = _code->data();
 
-  ANNOpBuilder op_builder{d};
+  ANNOpBuilder op_builder;
 
   // ANNGroupBuilder will construct a sequence of blocks from the original block sequence, and
   // a destination block (that dst_blk points to) is the tail of the generated sequence.