From cfcd5ee9cee30e447b668b0279b990c49b7fbcd0 Mon Sep 17 00:00:00 2001 From: Tommy Meisel Date: Mon, 4 Nov 2024 11:05:09 -0800 Subject: [PATCH] remove unused variable --- compiler/cpp/src/thrift/generate/t_java_generator.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/cpp/src/thrift/generate/t_java_generator.cc b/compiler/cpp/src/thrift/generate/t_java_generator.cc index ebc83505ad1..c68e30fc1fd 100644 --- a/compiler/cpp/src/thrift/generate/t_java_generator.cc +++ b/compiler/cpp/src/thrift/generate/t_java_generator.cc @@ -5292,7 +5292,6 @@ void t_java_generator::generate_java_struct_tuple_writer(ofstream& 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) {