aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-08 16:38:42 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-08 16:38:42 -0700
commit6979b00624978ef53d7db988aed4f82a9380ac80 (patch)
treea6e6682fac62f0935f4d432982337c1226c33958 /src
parent0b488f7649065ad6f00cabbbb617a05dfc7a92e3 (diff)
Fix clang compilation
Diffstat (limited to 'src')
-rw-r--r--src/compiler/cpp_generator.cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
index 1a063c00c0..7c98e4ed66 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++) {