From 39eb2ed5570fa5bbe101919703117f5af3779175 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Mon, 27 Oct 2014 10:57:44 -0400 Subject: [PATCH] remove unused code --- compiler/src/main/cpp/capnpc-java.c++ | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler/src/main/cpp/capnpc-java.c++ b/compiler/src/main/cpp/capnpc-java.c++ index 7af6043..f6a01ad 100644 --- a/compiler/src/main/cpp/capnpc-java.c++ +++ b/compiler/src/main/cpp/capnpc-java.c++ @@ -1119,7 +1119,6 @@ private: makeWhich(schema, indent+1), spaces(indent), " public final Reader asReader() {\n", spaces(indent), " return new Reader(segment, data, pointers, dataSize, pointerCount, 0x7fffffff);\n", - //spaces(indent), " return new Reader(this._builder.asReader());\n", spaces(indent), " }\n", kj::mv(methodDecls), spaces(indent), "}\n", @@ -1213,9 +1212,6 @@ private: auto typeName_ = typeName(type).flatten(); auto upperCase = toUpperCase(name); - // Linkage qualifier for non-primitive types. - const char* linkage = scope.size() == 0 ? "extern " : "static "; - switch (type.which()) { case schema::Value::VOID: case schema::Value::BOOL: