Browse Source

remove unused code from bidistreaming template

Tim Burks 9 years ago
parent
commit
6883e99383

+ 0 - 14
Examples/Echo/Swift/Generated/echo.client.pb.swift

@@ -223,20 +223,6 @@ public class Echo_EchoUpdateCall {
     return self
   }
 
-  fileprivate func receiveMessage(callback:@escaping (Echo_EchoResponse?) throws -> Void) throws {
-    try call.receiveMessage() {(data) in
-      if let data = data {
-        if let responseMessage = try? Echo_EchoResponse(protobuf:data) {
-          try callback(responseMessage)
-        } else {
-          try callback(nil) // error, bad data
-        }
-      } else {
-        try callback(nil)
-      }
-    }
-  }
-
   public func Receive() throws -> Echo_EchoResponse {
     var returnError : Echo_EchoClientError?
     var returnMessage : Echo_EchoResponse!

+ 0 - 14
Plugin/swiftgrpc.templates/client-call-bidistreaming.swift

@@ -12,20 +12,6 @@ public class {{ .|call:protoFile,service,method }} {
     return self
   }
 
-  fileprivate func receiveMessage(callback:@escaping ({{ method|output }}?) throws -> Void) throws {
-    try call.receiveMessage() {(data) in
-      if let data = data {
-        if let responseMessage = try? {{ method|output }}(protobuf:data) {
-          try callback(responseMessage)
-        } else {
-          try callback(nil) // error, bad data
-        }
-      } else {
-        try callback(nil)
-      }
-    }
-  }
-
   public func Receive() throws -> {{ method|output }} {
     var returnError : {{ .|clienterror:protoFile,service }}?
     var returnMessage : {{ method|output }}!