aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/str_util.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-04-06 08:54:07 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-04-06 10:01:58 -0700
commite44c0f6339888e97d7c07a5e4e4a4d101e9473b7 (patch)
treee3c4a99b724818b1769e17099e8a6b72026599f6 /tensorflow/core/lib/strings/str_util.h
parent8c44d4d7258b35da0275852a6a0c8afa28d16ea7 (diff)
Remove NumericParse32 from str_util.h, replacing calls with safe_strto32 from
numbers.h. This removes the duplicate code, but has a small behavior change - safe_strto32 strips leading and trailing whitespace, while NumericParse does not. But this seems okay. Also changed the flag parsing command_line_flags.cc to template on int32 instead of int. Change: 119170865
Diffstat (limited to 'tensorflow/core/lib/strings/str_util.h')
-rw-r--r--tensorflow/core/lib/strings/str_util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/tensorflow/core/lib/strings/str_util.h b/tensorflow/core/lib/strings/str_util.h
index 9c5391d0bb..57206f210c 100644
--- a/tensorflow/core/lib/strings/str_util.h
+++ b/tensorflow/core/lib/strings/str_util.h
@@ -40,11 +40,6 @@ string CEscape(const string& src);
// NOTE: Does not support \u or \U!
bool CUnescape(StringPiece source, string* dest, string* error);
-// If "text" can be successfully parsed as the ASCII representation of
-// an integer, sets "*val" to the value and returns true. Otherwise,
-// returns false.
-bool NumericParse32(const string& text, int32* val);
-
// Removes any trailing whitespace from "*s".
void StripTrailingWhitespace(string* s);