Remove deprecated nncc_foundation (#2694)
author박종현/On-Device Lab./Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 17 Dec 2018 23:58:43 +0000 (08:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 17 Dec 2018 23:58:43 +0000 (08:58 +0900)
There is no code that uses nncc_foundation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
libs/foundation/CMakeLists.txt [deleted file]
libs/foundation/include/nncc/foundation/Memory.h [deleted file]
libs/foundation/include/nncc/foundation/math/Float.h [deleted file]
libs/foundation/src/Memory.test.cpp [deleted file]

diff --git a/libs/foundation/CMakeLists.txt b/libs/foundation/CMakeLists.txt
deleted file mode 100644 (file)
index c06e381..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-file(GLOB_RECURSE HEADERS "include/*.h")
-file(GLOB_RECURSE SOURCES "src/*.cpp")
-file(GLOB_RECURSE TESTS "src/*.test.cpp")
-list(REMOVE_ITEM SOURCES ${TESTS})
-
-# NOTE STATIC is deliberately used here to permit the use of 'nncc_foundation' without installation
-add_nncc_library(nncc_foundation STATIC ${HEADERS} ${SOURCES})
-set_target_properties(nncc_foundation PROPERTIES POSITION_INDEPENDENT_CODE ON)
-set_target_properties(nncc_foundation PROPERTIES LINKER_LANGUAGE CXX)
-target_include_directories(nncc_foundation PUBLIC include)
-
-add_nncc_test(nncc_foundation_test ${TESTS})
-nncc_target_link_libraries(nncc_foundation_test nncc_foundation)
diff --git a/libs/foundation/include/nncc/foundation/Memory.h b/libs/foundation/include/nncc/foundation/Memory.h
deleted file mode 100644 (file)
index 9141633..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __NNCC_FOUNDATION_MEMORY_H__
-#define __NNCC_FOUNDATION_MEMORY_H__
-
-#include <memory>
-
-namespace nncc
-{
-namespace foundation
-{
-
-template <typename T, typename... Args> std::unique_ptr<T> make_unique(Args &&... args)
-{
-  // NOTE std::make_unique is missing in C++11 standard
-  return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
-
-} // namespace foundation
-} // namespace nncc
-
-#endif // __NNCC_FOUNDATION_MEMORY_H__
diff --git a/libs/foundation/include/nncc/foundation/math/Float.h b/libs/foundation/include/nncc/foundation/math/Float.h
deleted file mode 100644 (file)
index 81161e0..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __NNCC_FOUNDATION_MATH_FLOAT_H__
-#define __NNCC_FOUNDATION_MATH_FLOAT_H__
-
-namespace nncc
-{
-namespace foundation
-{
-namespace math
-{
-
-bool relative_epsilon_equal(float lhs, float rhs, unsigned tolerance = 1);
-bool absolute_epsilon_equal(float lhs, float rhs, float tolerance = 0.001);
-
-} // namespace math
-} // namespace foundation
-} // namespace nncc
-
-#endif // __NNCC_FOUNDATION_MATH_FLOAT_H__
diff --git a/libs/foundation/src/Memory.test.cpp b/libs/foundation/src/Memory.test.cpp
deleted file mode 100644 (file)
index 31f77ca..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <nncc/foundation/Memory.h>
-
-#include <gtest/gtest.h>
-
-class Tracker
-{
-public:
-  Tracker(bool &allocated, bool &freed) : _freed{freed} { allocated = true; }
-
-public:
-  ~Tracker() { _freed = true; }
-
-private:
-  bool &_freed;
-};
-
-TEST(FOUNDATION_MEMORY, unique_ptr)
-{
-  bool allocated = false;
-  bool freed = false;
-
-  {
-    auto o = nncc::foundation::make_unique<Tracker>(allocated, freed);
-
-    ASSERT_TRUE(allocated);
-    ASSERT_FALSE(freed);
-  }
-
-  ASSERT_TRUE(freed);
-}