mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
[thrift] remove trailing-whitespace-generating code from t_erl_generator.cc
Summary: meta Reviewed By: dcorson Test Plan: M-x delete-trailing-whitespace does nothing Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2605af3a2d
commit
90eab4d6e4
@ -433,7 +433,7 @@ void t_erl_generator::generate_erl_struct_reader(ostream& out,
|
||||
|
||||
// In the default case we skip the field
|
||||
out <<
|
||||
indent() << "true -> " << endl <<
|
||||
indent() << "true ->" << endl <<
|
||||
indent() << " ?R1(Iprot, skip, Ftype)," << endl <<
|
||||
indent() << " ?R0(Iprot, readFieldEnd)," << endl <<
|
||||
indent() << " " << type_name(tstruct) << "_read_loop(Iprot, Str)" << endl;
|
||||
@ -692,7 +692,7 @@ void t_erl_generator::generate_service_client(t_service* tservice) {
|
||||
f_service_ << "";
|
||||
}
|
||||
f_service_ <<
|
||||
"recv_" << funname << "(This), " << endl;
|
||||
"recv_" << funname << "(This)," << endl;
|
||||
}
|
||||
|
||||
indent(f_service_) << "ok." << endl;
|
||||
@ -758,7 +758,7 @@ void t_erl_generator::generate_service_client(t_service* tservice) {
|
||||
indent() << " Mtype == ?tMessageType_EXCEPTION ->" << endl <<
|
||||
indent() << " X = tApplicationException:new()," << endl <<
|
||||
indent() << " tApplicationException:read(X, Iprot)," << endl <<
|
||||
indent() << " ?R0(Iprot, readMessageEnd), " << endl <<
|
||||
indent() << " ?R0(Iprot, readMessageEnd)," << endl <<
|
||||
indent() << " throw(X);" << endl <<
|
||||
indent() << " true ->" << endl <<
|
||||
indent() << " Result = " << resultname << "_read(Iprot)," << endl <<
|
||||
@ -794,7 +794,7 @@ void t_erl_generator::generate_service_client(t_service* tservice) {
|
||||
indent() << " end" << endl;
|
||||
} else {
|
||||
f_service_ <<
|
||||
indent() << " true -> " << endl <<
|
||||
indent() << " true ->" << endl <<
|
||||
indent() << " throw(tApplicationException:new(?tApplicationException_MISSING_RESULT, \"" << (*f_iter)->get_name() << " failed: unknown result\"))" << endl <<
|
||||
indent() << " end" << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user