From 219354fb5a581f2c79c63dae527134aff7226a31 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Wed, 2 May 2018 23:39:53 -0700 Subject: [PATCH] Revert "Provide protocol for initializer of generated messages" --- src/compiler/objective_c_generator.cc | 2 +- src/objective-c/ProtoRPC/ProtoService.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc index 7d4d4d1f5a4..39f68cb9565 100644 --- a/src/compiler/objective_c_generator.cc +++ b/src/compiler/objective_c_generator.cc @@ -248,7 +248,7 @@ void PrintMethodImplementations(Printer* printer, " */\n"); printer.Print(vars, "@interface $service_class$ :" - " GRPCProtoService<$service_class$, GRPCProtoServiceInit>\n"); + " GRPCProtoService<$service_class$>\n"); printer.Print( "- (instancetype)initWithHost:(NSString *)host" " NS_DESIGNATED_INITIALIZER;\n"); diff --git a/src/objective-c/ProtoRPC/ProtoService.h b/src/objective-c/ProtoRPC/ProtoService.h index c411bed60f0..29c4e9be360 100644 --- a/src/objective-c/ProtoRPC/ProtoService.h +++ b/src/objective-c/ProtoRPC/ProtoService.h @@ -22,12 +22,6 @@ @protocol GRXWriteable; @class GRXWriter; -@protocol GRPCProtoServiceInit - -- (instancetype)initWithHost:(NSString *)host; - -@end - __attribute__((deprecated("Please use GRPCProtoService."))) @interface ProtoService : NSObject - (instancetype)initWithHost : (NSString *)host packageName