aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2018-05-03 08:06:53 -0700
committerGravatar GitHub <noreply@github.com>2018-05-03 08:06:53 -0700
commitccb83f0ffff179ff33249cffb00d331b7899926b (patch)
tree8ba4a6dc4d98956839236b9e4243647449cf9811 /src
parent57b5b8ca81f9ae1dea846ef307a50403760b5055 (diff)
parent219354fb5a581f2c79c63dae527134aff7226a31 (diff)
Merge pull request #15258 from grpc/revert-15193-service-init-protocol
Revert "Provide protocol for initializer of generated messages"
Diffstat (limited to 'src')
-rw-r--r--src/compiler/objective_c_generator.cc2
-rw-r--r--src/objective-c/ProtoRPC/ProtoService.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc
index 7d4d4d1f5a..39f68cb956 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 c411bed60f..29c4e9be36 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