diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-28 09:07:14 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-28 09:11:17 -0700 |
commit | f8f5bbe006bc98e98fd939898ceff08dbaace34f (patch) | |
tree | 0ce731cb888e678790f69923788decfb58a7a9cb /tensorflow/core/lib | |
parent | 2cb954e5441605c8668d2aecbf12e324a07b3c89 (diff) |
Removed ToString method from tensorflow::StringPiece.
This will make it easier to replace tensorflow::StringPiece with absl::string_view, as absl::string_view does not contain a ToString method.
PiperOrigin-RevId: 210550029
Diffstat (limited to 'tensorflow/core/lib')
-rw-r--r-- | tensorflow/core/lib/core/stringpiece.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tensorflow/core/lib/core/stringpiece.h b/tensorflow/core/lib/core/stringpiece.h index be659e5f8e..02dded42c1 100644 --- a/tensorflow/core/lib/core/stringpiece.h +++ b/tensorflow/core/lib/core/stringpiece.h @@ -92,10 +92,6 @@ class StringPiece { StringPiece substr(size_t pos, size_t n = npos) const; - // Return a string that contains the copy of the referenced data. - // DEPRECATED: use std::string(sv) instead. - std::string ToString() const { return std::string(data_, size_); } - // Three-way comparison. Returns value: // < 0 iff "*this" < "b", // == 0 iff "*this" == "b", |