Clean up leftover comments in str_util.
These were left over due to two separate cls touching this section of the code.
PiperOrigin-RevId: 263012313
diff --git a/tensorflow/core/lib/strings/str_util.cc b/tensorflow/core/lib/strings/str_util.cc
index c9ff092..ec711d3 100644
--- a/tensorflow/core/lib/strings/str_util.cc
+++ b/tensorflow/core/lib/strings/str_util.cc
@@ -23,7 +23,6 @@
#include "absl/strings/escaping.h"
#include "absl/strings/match.h"
#include "absl/strings/strip.h"
-#include "tensorflow/core/lib/strings/numbers.h"
#include "tensorflow/core/lib/strings/stringprintf.h"
#include "tensorflow/core/platform/logging.h"
@@ -32,24 +31,6 @@
string CEscape(StringPiece src) { return absl::CEscape(src); }
-namespace { // Private helpers for CUnescape().
-
-template <typename T>
-bool SplitAndParseAsInts(StringPiece text, char delim,
- std::function<bool(StringPiece, T*)> converter,
- std::vector<T>* result) {
- result->clear();
- std::vector<string> num_strings = Split(text, delim);
- for (const auto& s : num_strings) {
- T num;
- if (!converter(s, &num)) return false;
- result->push_back(num);
- }
- return true;
-}
-
-} // namespace
-
bool CUnescape(StringPiece source, string* dest, string* error) {
return absl::CUnescape(source, dest, error);
}
diff --git a/tensorflow/core/lib/strings/str_util.h b/tensorflow/core/lib/strings/str_util.h
index 5dc4498..21bad0d 100644
--- a/tensorflow/core/lib/strings/str_util.h
+++ b/tensorflow/core/lib/strings/str_util.h
@@ -147,10 +147,6 @@
ABSL_DEPRECATED("Use absl::StrSplit instead.")
std::vector<string> Split(StringPiece text, StringPiece delims, Predicate p);
-// Split "text" at "delim" characters, and parse each component as
-// an integer. If successful, adds the individual numbers in order
-// to "*result" and returns true. Otherwise returns false.
-
// StartsWith()
//
// Returns whether a given string `text` begins with `prefix`.