diff options
author | 2015-05-08 17:13:19 -0700 | |
---|---|---|
committer | 2015-05-08 17:13:19 -0700 | |
commit | cc193a66661eea897a53d16b0cd4054a338f9c9b (patch) | |
tree | 71e5bf1a37af7f15ce3a4d1c57d0cbaa3e3f82ed /src | |
parent | fcdf33b39f2ccaa69a301810b321dc77b6bcb174 (diff) | |
parent | 020ae63171f99637f8c87cc96016f1e15b1c3945 (diff) |
Merge pull request #1538 from ctiller/oops-broke-the-compiler
Fix clang compilation
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/cpp_generator.cc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc index a0c9d3d468..1ab85bad5c 100644 --- a/src/compiler/cpp_generator.cc +++ b/src/compiler/cpp_generator.cc @@ -66,50 +66,6 @@ bool BidiStreaming(const grpc::protobuf::MethodDescriptor *method) { return method->client_streaming() && method->server_streaming(); } -bool HasUnaryCalls(const grpc::protobuf::FileDescriptor *file) { - for (int i = 0; i < file->service_count(); i++) { - for (int j = 0; j < file->service(i)->method_count(); j++) { - if (NoStreaming(file->service(i)->method(j))) { - return true; - } - } - } - return false; -} - -bool HasClientOnlyStreaming(const grpc::protobuf::FileDescriptor *file) { - for (int i = 0; i < file->service_count(); i++) { - for (int j = 0; j < file->service(i)->method_count(); j++) { - if (ClientOnlyStreaming(file->service(i)->method(j))) { - return true; - } - } - } - return false; -} - -bool HasServerOnlyStreaming(const grpc::protobuf::FileDescriptor *file) { - for (int i = 0; i < file->service_count(); i++) { - for (int j = 0; j < file->service(i)->method_count(); j++) { - if (ServerOnlyStreaming(file->service(i)->method(j))) { - return true; - } - } - } - return false; -} - -bool HasBidiStreaming(const grpc::protobuf::FileDescriptor *file) { - for (int i = 0; i < file->service_count(); i++) { - for (int j = 0; j < file->service(i)->method_count(); j++) { - if (BidiStreaming(file->service(i)->method(j))) { - return true; - } - } - } - return false; -} - grpc::string FilenameIdentifier(const grpc::string &filename) { grpc::string result; for (unsigned i = 0; i < filename.size(); i++) { |