[coco] Remove deprecated FeatureObject::at method (#2590)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 10 Dec 2018 08:15:42 +0000 (17:15 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 10 Dec 2018 08:15:42 +0000 (17:15 +0900)
"at" method in FeatureObject was introduced when FeatureObject is
responsible to layout management, but this method is no longer used.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/FeatureObject.h
contrib/coco/core/src/IR/FeatureObject.cpp

index 87ede29..f4244d9 100644 (file)
@@ -51,9 +51,6 @@ public:
   const FeatureShape &shape(void) const;
 
 public:
-  ElemID at(uint32_t ch, uint32_t row, uint32_t col) const;
-
-public:
   const FeatureLayout *layout(void) const { return _layout.get(); }
   void layout(std::unique_ptr<FeatureLayout> &&l) { _layout = std::move(l); }
 
index 5c3c36a..02ce456 100644 (file)
@@ -28,10 +28,4 @@ FeatureObject::~FeatureObject()
 
 const nncc::core::ADT::feature::Shape &FeatureObject::shape(void) const { return _layout->shape(); }
 
-ElemID FeatureObject::at(uint32_t ch, uint32_t row, uint32_t col) const
-{
-  assert(_layout->batch() == 1);
-  return _layout->at(0, ch, row, col);
-}
-
 } // namespace coco