THRIFT-2380 unreachable code (CID 1174546, CID 1174679)

Patch: Jens Geyer
This commit is contained in:
Jens Geyer 2014-02-26 21:00:05 +01:00
parent 312362314c
commit 38eea034c3
2 changed files with 0 additions and 17 deletions

View File

@ -3147,12 +3147,7 @@ void t_delphi_generator::generate_delphi_struct_result_writer_impl(ostream& out,
if (fields.size() > 0) {
indent_impl(code_block) << "field_ := TFieldImpl.Create;" << endl;
bool first = true;
for (f_iter = fields.begin(); f_iter != fields.end(); ++f_iter) {
if (! first) {
indent_impl(code_block) << "end else" << endl;
}
indent_impl(code_block) << "if (__isset_" << prop_name(*f_iter,is_exception) << ") then" << endl;
indent_impl(code_block) << "begin" << endl;
indent_up_impl();
@ -3168,11 +3163,6 @@ void t_delphi_generator::generate_delphi_struct_result_writer_impl(ostream& out,
indent_impl(code_block) << "oprot.WriteFieldEnd();" << endl;
indent_down_impl();
}
if (! first) {
indent_impl(code_block) << "end;" << endl;
}
}

View File

@ -2092,13 +2092,6 @@ void t_go_generator::generate_service_remote(t_service* tservice)
indent() << "argvalue" << i << " := containerStruct" << i << "." << argName << endl;
} else {
throw ("Invalid argument type in generate_service_remote");
string err1(tmp("err"));
f_remote <<
indent() << "argvalue" << i << ", " << err1 << " := eval(flag.Arg(" << flagArg << "))" << endl <<
indent() << "if " << err1 << " != nil {" << endl <<
indent() << " Usage()" << endl <<
indent() << " return" << endl <<
indent() << "}" << endl;
}
if (the_type->is_typedef()) {