Remove unused headers and functions (#3316)
authorShubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 <shub98.gupta@samsung.com>
Thu, 25 Oct 2018 07:33:37 +0000 (13:03 +0530)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 25 Oct 2018 07:33:37 +0000 (16:33 +0900)
This patch will remove all unused headers and functions from following files:
CLActivationLayerExKernel.cpp
CLBatchToSpaceNDKernel.cpp
CLDepthToSpaceKernel.cpp
CLEqualKernel.cpp
CLGatherKernel.cpp
CLNegKernel.cpp
CLPixelWiseDivisionKernel.cpp
CLReduceMaxKernel.cpp
CLReduceSumKernel.cpp
CLReductionMeanKernel.cpp
CLSpaceToDepthKernel.cpp
CLSquaredDifferenceKernel.cpp
CLStridedSliceKernel.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
13 files changed:
libs/ARMComputeEx/src/core/CL/kernels/CLActivationLayerExKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLReductionMeanKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLSquaredDifferenceKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLStridedSliceKernel.cpp

index 70331ff..b7c56cb 100644 (file)
@@ -31,9 +31,6 @@
 
 #include "arm_compute/core/Types.h"
 #include "arm_compute/core/TypesEx.h"
-#include "support/ToolchainSupport.h"
-
-#include <cmath>
 
 using namespace arm_compute;
 
index d939999..f8d7248 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index ae22383..e95feae 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index abe4c40..7bac251 100644 (file)
@@ -27,8 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <algorithm>
-
 using namespace arm_compute;
 
 CLEqualKernel::CLEqualKernel() : _input1(nullptr), _input2(nullptr), _output(nullptr) {}
index 1e56a78..e04f63e 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index 86b46b6..5b4984f 100644 (file)
@@ -27,8 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <algorithm>
-
 using namespace arm_compute;
 
 CLNegKernel::CLNegKernel() : _input(nullptr), _output(nullptr) {}
index a3e0163..843e548 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index 51318d7..a6392f8 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index 40174f3..0501027 100644 (file)
@@ -28,8 +28,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include "support/ToolchainSupport.h"
-
 using namespace arm_compute;
 
 namespace
index 84a7712..100a6c6 100644 (file)
@@ -28,8 +28,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include "support/ToolchainSupport.h"
-
 using namespace arm_compute;
 
 namespace
index 6602956..dd23078 100644 (file)
@@ -27,9 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <cmath>
-#include <cstdlib>
-#include <set>
 #include <string>
 
 using namespace arm_compute;
index 3eb26b5..c77b8b6 100644 (file)
@@ -27,8 +27,6 @@
 #include "arm_compute/core/Validate.h"
 #include "arm_compute/core/Window.h"
 
-#include <algorithm>
-
 using namespace arm_compute;
 
 namespace
index 80ffd42..64a981d 100644 (file)
 
 #include <string>
 
-using namespace std;
 using namespace arm_compute;
 
-static const int32_t maxDim = 4;
-
 CLStridedSliceKernel::CLStridedSliceKernel()
     : _input(nullptr), _output(nullptr), _beginData(nullptr), _endData(nullptr),
       _stridesData(nullptr), _beginMask(0), _endMask(0), _shrinkAxisMask(0)
@@ -153,15 +150,6 @@ inline int32_t StopForAxis(int32_t endMask, int32_t end, int32_t stride,
   return stop;
 }
 
-inline int32_t offset4D(const TensorShape &shape, int32_t b, int32_t d, int32_t h, int32_t w)
-{
-  int32_t offset = b * shape[2] * shape[1] * shape[0];
-  offset += d * shape[1] * shape[0];
-  offset += h * shape[0];
-  offset += w;
-  return offset;
-}
-
 inline int32_t getOutDim(int32_t start, int32_t stop, int32_t stride)
 {
   int32_t ret = 0;