From ffe8e9c9036f4ec7d5b55da75b1758b1f57fbf8d Mon Sep 17 00:00:00 2001 From: Jian Yang Date: Thu, 28 Mar 2019 23:48:53 +0800 Subject: [PATCH] remove duplicated has$field$ method for oneof --- javascript/net/grpc/web/grpc_generator.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/javascript/net/grpc/web/grpc_generator.cc b/javascript/net/grpc/web/grpc_generator.cc index 39f74e52..a26e7c97 100644 --- a/javascript/net/grpc/web/grpc_generator.cc +++ b/javascript/net/grpc/web/grpc_generator.cc @@ -879,9 +879,6 @@ void PrintProtoDtsMessage(Printer *printer, const Descriptor *desc, "index?: number): $js_field_type$;\n"); } } - if (field->containing_oneof() != nullptr) { - printer->Print(vars, "has$js_field_name$(): boolean;\n"); - } printer->Print("\n"); }