Skip to content

Commit

Permalink
THRIFT-5738: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffalder authored and Jens-G committed Sep 25, 2023
1 parent 407630f commit bc9c04d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/cpp/src/thrift/generate/t_java_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5756,7 +5756,6 @@ void t_java_generator::generate_java_struct_tuple_writer(ostream& out, t_struct*
}

indent(out) << "oprot.writeBitSet(optionals, " << optional_count << ");" << endl;
int j = 0;
for (f_iter = fields.begin(); f_iter != fields.end(); ++f_iter) {
if ((*f_iter)->get_req() == t_field::T_OPTIONAL
|| (*f_iter)->get_req() == t_field::T_OPT_IN_REQ_OUT) {
Expand All @@ -5765,7 +5764,6 @@ void t_java_generator::generate_java_struct_tuple_writer(ostream& out, t_struct*
generate_serialize_field(out, (*f_iter), "struct.", "", false);
indent_down();
indent(out) << "}" << endl;
j++;
}
}
}
Expand Down

0 comments on commit bc9c04d

Please sign in to comment.