diff options
author | 2018-01-26 05:14:47 -0800 | |
---|---|---|
committer | 2018-01-26 05:19:04 -0800 | |
commit | c8c2e4932afccb594bfe05e22facea1aba9dd454 (patch) | |
tree | 5a78a1dd985c32c4924fc68cb2e48f5b639eb598 /tensorflow/core/framework/op_gen_lib.cc | |
parent | 7578785dff668c63ba6b5423a6bf2a5984c7b409 (diff) |
Remove dead code
PiperOrigin-RevId: 183374040
Diffstat (limited to 'tensorflow/core/framework/op_gen_lib.cc')
-rw-r--r-- | tensorflow/core/framework/op_gen_lib.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tensorflow/core/framework/op_gen_lib.cc b/tensorflow/core/framework/op_gen_lib.cc index e78b6ab5d9..870bbb141b 100644 --- a/tensorflow/core/framework/op_gen_lib.cc +++ b/tensorflow/core/framework/op_gen_lib.cc @@ -266,35 +266,6 @@ static void StringReplace(const string& from, const string& to, string* s) { *s = str_util::Join(split, to.c_str()); } -static void RenameInDocs(const string& from, const string& to, OpDef* op_def) { - const string from_quoted = strings::StrCat("`", from, "`"); - const string to_quoted = strings::StrCat("`", to, "`"); - for (int i = 0; i < op_def->input_arg_size(); ++i) { - if (!op_def->input_arg(i).description().empty()) { - StringReplace(from_quoted, to_quoted, - op_def->mutable_input_arg(i)->mutable_description()); - } - } - for (int i = 0; i < op_def->output_arg_size(); ++i) { - if (!op_def->output_arg(i).description().empty()) { - StringReplace(from_quoted, to_quoted, - op_def->mutable_output_arg(i)->mutable_description()); - } - } - for (int i = 0; i < op_def->attr_size(); ++i) { - if (!op_def->attr(i).description().empty()) { - StringReplace(from_quoted, to_quoted, - op_def->mutable_attr(i)->mutable_description()); - } - } - if (!op_def->summary().empty()) { - StringReplace(from_quoted, to_quoted, op_def->mutable_summary()); - } - if (!op_def->description().empty()) { - StringReplace(from_quoted, to_quoted, op_def->mutable_description()); - } -} - static void RenameInDocs(const string& from, const string& to, ApiDef* api_def) { const string from_quoted = strings::StrCat("`", from, "`"); |