From da2daf068a989cf27f819cf25eaa94396ba370f2 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 30 May 2017 14:37:32 -0700 Subject: [PATCH] Remove unused using declarations PiperOrigin-RevId: 157513772 --- tensorflow/c/c_api.cc | 1 - tensorflow/compiler/xla/literal_util_test.cc | 1 - tensorflow/contrib/cudnn_rnn/kernels/cudnn_rnn_ops.cc | 1 - tensorflow/core/util/ctc/ctc_loss_calculator.h | 2 -- tensorflow/stream_executor/lib/env.h | 2 -- tensorflow/stream_executor/lib/path.cc | 2 -- tensorflow/stream_executor/lib/str_util.h | 1 - tensorflow/stream_executor/lib/stringprintf.h | 1 - 8 files changed, 11 deletions(-) diff --git a/tensorflow/c/c_api.cc b/tensorflow/c/c_api.cc index 1181c5c698e..e6c2a1486e9 100644 --- a/tensorflow/c/c_api.cc +++ b/tensorflow/c/c_api.cc @@ -71,7 +71,6 @@ using tensorflow::NodeBuilder; using tensorflow::OpDef; using tensorflow::OpRegistry; using tensorflow::PartialTensorShape; -using tensorflow::Reset; using tensorflow::RunMetadata; using tensorflow::RunOptions; using tensorflow::Session; diff --git a/tensorflow/compiler/xla/literal_util_test.cc b/tensorflow/compiler/xla/literal_util_test.cc index 9a09822174d..b8642f51512 100644 --- a/tensorflow/compiler/xla/literal_util_test.cc +++ b/tensorflow/compiler/xla/literal_util_test.cc @@ -31,7 +31,6 @@ namespace xla { namespace { using ::testing::ElementsAre; -using ::testing::ElementsAreArray; class LiteralUtilTest : public ::testing::Test { protected: diff --git a/tensorflow/contrib/cudnn_rnn/kernels/cudnn_rnn_ops.cc b/tensorflow/contrib/cudnn_rnn/kernels/cudnn_rnn_ops.cc index 225e5bf3046..5a0140bbb78 100644 --- a/tensorflow/contrib/cudnn_rnn/kernels/cudnn_rnn_ops.cc +++ b/tensorflow/contrib/cudnn_rnn/kernels/cudnn_rnn_ops.cc @@ -107,7 +107,6 @@ using perftools::gputools::DeviceMemory; using perftools::gputools::DeviceMemoryBase; using perftools::gputools::ScratchAllocator; using perftools::gputools::port::StatusOr; -using strings::Printf; Status ParseRNNMode(const string& str, RnnMode* rnn_mode) { if (str == "rnn_relu") { diff --git a/tensorflow/core/util/ctc/ctc_loss_calculator.h b/tensorflow/core/util/ctc/ctc_loss_calculator.h index 567bad38c33..81a7033556e 100644 --- a/tensorflow/core/util/ctc/ctc_loss_calculator.h +++ b/tensorflow/core/util/ctc/ctc_loss_calculator.h @@ -30,8 +30,6 @@ limitations under the License. namespace tensorflow { namespace ctc { -using strings::StrCat; - class CTCLossCalculator { // Connectionist Temporal Classification Loss // diff --git a/tensorflow/stream_executor/lib/env.h b/tensorflow/stream_executor/lib/env.h index 9bdc46b3dca..c9a22ebd558 100644 --- a/tensorflow/stream_executor/lib/env.h +++ b/tensorflow/stream_executor/lib/env.h @@ -26,9 +26,7 @@ namespace gputools { namespace port { using tensorflow::Env; -using tensorflow::ReadFileToString; using tensorflow::Thread; -using tensorflow::WriteStringToFile; inline Status FileExists(const string& filename) { return Env::Default()->FileExists(filename); diff --git a/tensorflow/stream_executor/lib/path.cc b/tensorflow/stream_executor/lib/path.cc index 139b5bb5f50..f2591f47f7b 100644 --- a/tensorflow/stream_executor/lib/path.cc +++ b/tensorflow/stream_executor/lib/path.cc @@ -16,8 +16,6 @@ limitations under the License. #include "tensorflow/stream_executor/lib/path.h" #include "tensorflow/stream_executor/lib/strcat.h" -using ::perftools::gputools::port::StrAppend; - namespace perftools { namespace gputools { namespace port { diff --git a/tensorflow/stream_executor/lib/str_util.h b/tensorflow/stream_executor/lib/str_util.h index 0f95fd64198..4dd6f3b0ccf 100644 --- a/tensorflow/stream_executor/lib/str_util.h +++ b/tensorflow/stream_executor/lib/str_util.h @@ -36,7 +36,6 @@ inline string StripSuffixString(port::StringPiece str, port::StringPiece suffix) } using tensorflow::str_util::Lowercase; -using tensorflow::str_util::Uppercase; } // namespace port } // namespace gputools diff --git a/tensorflow/stream_executor/lib/stringprintf.h b/tensorflow/stream_executor/lib/stringprintf.h index 7cc90b5550b..504de25a681 100644 --- a/tensorflow/stream_executor/lib/stringprintf.h +++ b/tensorflow/stream_executor/lib/stringprintf.h @@ -24,7 +24,6 @@ namespace port { using tensorflow::strings::Printf; using tensorflow::strings::Appendf; -using tensorflow::strings::Appendv; } // namespace port } // namespace gputools