[enco] Remove unused aligned function (#1742)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 4 Oct 2018 06:52:44 +0000 (15:52 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 4 Oct 2018 06:52:44 +0000 (15:52 +0900)
This commit removes unused aligned function implemented in
Normalize.cpp.

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

index 972a24c..871d3bc 100644 (file)
@@ -30,29 +30,6 @@ using nncc::foundation::make_unique;
 
 namespace
 {
-bool aligned(const coco::KernelObject *o, const nncc::core::ADT::kernel::Layout &l)
-{
-  const auto &shape = o->shape();
-
-  for (uint32_t nth = 0; nth < shape.count(); ++nth)
-  {
-    for (uint32_t row = 0; row < shape.height(); ++row)
-    {
-      for (uint32_t col = 0; col < shape.width(); ++col)
-      {
-        for (uint32_t ch = 0; ch < shape.depth(); ++ch)
-        {
-          if (o->at(nth, ch, row, col).value() != l.offset(shape, nth, ch, row, col))
-          {
-            return false;
-          }
-        }
-      }
-    }
-  }
-
-  return true;
-}
 
 coco::Copy *make_copy(coco::FeatureObject *from, coco::FeatureObject *into)
 {