[core] Remove deprecated PadInfo and StrideInfo (#1263)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 31 Aug 2018 04:16:10 +0000 (13:16 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 31 Aug 2018 04:16:10 +0000 (13:16 +0900)
This commit removes deprecated PadInfo and StrideInfo classes from
nncc.core.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
libs/core/include/nncc/core/ADT/PadInfo.h [deleted file]
libs/core/include/nncc/core/ADT/StrideInfo.h [deleted file]
libs/core/src/ADT/PadInfo.test.cpp [deleted file]
libs/core/src/ADT/StrideInfo.test.cpp [deleted file]

diff --git a/libs/core/include/nncc/core/ADT/PadInfo.h b/libs/core/include/nncc/core/ADT/PadInfo.h
deleted file mode 100644 (file)
index 16d4c42..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef __NNCC_CORE_ADT_PAD_INFO_H__
-#define __NNCC_CORE_ADT_PAD_INFO_H__
-
-#include <cstdint>
-
-namespace nncc
-{
-namespace core
-{
-namespace ADT
-{
-
-class PadInfo
-{
-public:
-  PadInfo(uint32_t top, uint32_t bottom, uint32_t left, uint32_t right)
-      : _top{top}, _bottom{bottom}, _left{left}, _right{right}
-  {
-    // DO NOTHING
-  }
-
-public:
-  uint32_t top(void) const { return _top; }
-  uint32_t bottom(void) const { return _bottom; }
-  uint32_t left(void) const { return _left; }
-  uint32_t right(void) const { return _right; }
-
-private:
-  uint32_t _top;
-  uint32_t _bottom;
-  uint32_t _left;
-  uint32_t _right;
-};
-
-} // namespace ADT
-} // namespace core
-} // namespace nncc
-
-#endif // __NNCC_CORE_ADT_PAD_INFO_H__
diff --git a/libs/core/include/nncc/core/ADT/StrideInfo.h b/libs/core/include/nncc/core/ADT/StrideInfo.h
deleted file mode 100644 (file)
index e0429a1..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef __NNCC_CORE_ADT_STRIDE_INFO_H__
-#define __NNCC_CORE_ADT_STRIDE_INFO_H__
-
-#include <cstdint>
-
-namespace nncc
-{
-namespace core
-{
-namespace ADT
-{
-
-class StrideInfo
-{
-public:
-  StrideInfo(uint32_t vertical, uint32_t horizontal) : _vertical{vertical}, _horizontal{horizontal}
-  {
-    // DO NOTHING
-  }
-
-public:
-  uint32_t vertical(void) const { return _vertical; }
-  uint32_t horizontal(void) const { return _horizontal; }
-
-private:
-  uint32_t _horizontal;
-  uint32_t _vertical;
-};
-
-} // namespace ADT
-} // namepsace core
-} // namespace nncc
-
-#endif // __NNCC_CORE_ADT_STRIDE_INFO_H__
diff --git a/libs/core/src/ADT/PadInfo.test.cpp b/libs/core/src/ADT/PadInfo.test.cpp
deleted file mode 100644 (file)
index 44a507e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <nncc/core/ADT/PadInfo.h>
-
-#include <gtest/gtest.h>
-
-TEST(ADT_PAD_INFO, ctor)
-{
-  const uint32_t top = 3;
-  const uint32_t bottom = 4;
-  const uint32_t left = 5;
-  const uint32_t right = 6;
-
-  nncc::core::ADT::PadInfo pad_info{top, bottom, left, right};
-
-  ASSERT_EQ(pad_info.top(), top);
-  ASSERT_EQ(pad_info.bottom(), bottom);
-  ASSERT_EQ(pad_info.left(), left);
-  ASSERT_EQ(pad_info.right(), right);
-}
diff --git a/libs/core/src/ADT/StrideInfo.test.cpp b/libs/core/src/ADT/StrideInfo.test.cpp
deleted file mode 100644 (file)
index 2f6040b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <nncc/core/ADT/StrideInfo.h>
-
-#include <gtest/gtest.h>
-
-TEST(ADT_STRIDE_INFO, ctor)
-{
-  const uint32_t vertical = 3;
-  const uint32_t horizontal = 4;
-
-  nncc::core::ADT::StrideInfo stride_info{vertical, horizontal};
-
-  ASSERT_EQ(stride_info.vertical(), vertical);
-  ASSERT_EQ(stride_info.horizontal(), horizontal);
-}