From 4741266d6fcac37c678e7815a2b93994fcddaec7 Mon Sep 17 00:00:00 2001 From: qijun Date: Fri, 13 Oct 2017 16:27:39 -0700 Subject: [PATCH] remove unused method --- paddle/operators/math/math_function.cc | 11 ----------- paddle/operators/math/math_function_test.cc | 1 - 2 files changed, 12 deletions(-) diff --git a/paddle/operators/math/math_function.cc b/paddle/operators/math/math_function.cc index ed49a0a54..ddb904aa4 100644 --- a/paddle/operators/math/math_function.cc +++ b/paddle/operators/math/math_function.cc @@ -134,17 +134,6 @@ void matmul( template struct SetConstant; -namespace detail { -size_t FindPos(const std::vector& rows, int64_t value) { - for (size_t i = 0; i < rows.size(); i++) { - if (rows[i] == value) { - return i; - } - } - return 0; -} -} // namespace detail - template struct SelectedRowsAdd { void operator()(const platform::DeviceContext& context, diff --git a/paddle/operators/math/math_function_test.cc b/paddle/operators/math/math_function_test.cc index e3186171d..fe0d1981f 100644 --- a/paddle/operators/math/math_function_test.cc +++ b/paddle/operators/math/math_function_test.cc @@ -1,5 +1,4 @@ #include "paddle/operators/math/math_function.h" -#include "glog/logging.h" #include "gtest/gtest.h" #ifdef PADDLE_WITH_CUDA -- GitLab