Skip to content

Commit d8cd883

Browse files
committed
THRIFT-5837 FIX: error: unused parameter etc
Patch: Jens Geyer
1 parent eb684d3 commit d8cd883

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

compiler/cpp/src/thrift/generate/t_delphi_generator.cc

+2-22
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ class t_delphi_generator : public t_oop_generator {
172172
std::string cls_prefix,
173173
t_struct* tstruct,
174174
bool is_exception);
175-
void generate_delphi_create_exception_impl(ostream& out,
176-
string cls_prefix,
177-
t_struct* tstruct,
178-
bool is_exception);
179175

180176
bool is_deprecated(std::map<std::string, std::vector<std::string>>& annotations);
181177
std::string render_deprecation_attribute(std::map<std::string, std::vector<std::string>>& annotations, std::string prefix, std::string postfix);
@@ -1381,6 +1377,7 @@ void t_delphi_generator::generate_delphi_struct_impl(ostream& out,
13811377
t_struct* tstruct,
13821378
bool is_result,
13831379
bool is_const_class) {
1380+
(void)is_result;
13841381

13851382
string cls_nm = type_name(tstruct, true, false);
13861383

@@ -1580,8 +1577,6 @@ void t_delphi_generator::generate_delphi_exception_impl(ostream& out,
15801577
generate_delphi_struct_reader_impl(out, cls_prefix, tstruct, true);
15811578
generate_delphi_struct_writer_impl(out, cls_prefix, tstruct, true);
15821579
generate_delphi_struct_tostring_impl(out, cls_prefix, tstruct, true);
1583-
1584-
generate_delphi_create_exception_impl(out, cls_prefix, tstruct, true);
15851580
}
15861581

15871582
void t_delphi_generator::print_delphi_struct_type_factory_func(ostream& out, t_struct* tstruct) {
@@ -2990,7 +2985,6 @@ void t_delphi_generator::generate_delphi_property(ostream& out,
29902985
(void)isPublic;
29912986

29922987
t_type* ftype = tfield->get_type();
2993-
bool is_xception = ftype->is_xception();
29942988
generate_delphi_doc(out, tfield);
29952989
indent(out) << "property " << prop_name(tfield, struct_is_xception) << ": "
29962990
<< type_name(ftype, false, true/*, false, true*/)
@@ -3188,7 +3182,6 @@ string t_delphi_generator::declare_field(t_field* tfield,
31883182
std::string prefix,
31893183
bool is_xception_class) {
31903184
t_type* ftype = tfield->get_type();
3191-
bool is_xception = ftype->is_xception();
31923185

31933186
string result = prop_name(tfield, is_xception_class, prefix) + ": "
31943187
+ type_name(ftype, false, true) + ";";
@@ -3395,7 +3388,6 @@ void t_delphi_generator::generate_delphi_property_writer_definition(ostream& out
33953388
t_field* tfield,
33963389
bool is_xception_class) {
33973390
t_type* ftype = tfield->get_type();
3398-
bool is_xception = ftype->is_xception();
33993391

34003392
indent(out) << "procedure " << prop_name(tfield, is_xception_class, "Set")
34013393
<< "( const Value: " << type_name(ftype, false, true/*, false, true*/) << ");"
@@ -3407,7 +3399,6 @@ void t_delphi_generator::generate_delphi_property_reader_definition(ostream& out
34073399
t_field* tfield,
34083400
bool is_xception_class) {
34093401
t_type* ftype = tfield->get_type();
3410-
bool is_xception = ftype->is_xception();
34113402

34123403
indent(out) << "function " << prop_name(tfield, is_xception_class, "Get") << ": "
34133404
<< type_name(ftype, false, true/*, false*/) << ";"
@@ -3418,6 +3409,7 @@ void t_delphi_generator::generate_delphi_property_reader_definition(ostream& out
34183409
void t_delphi_generator::generate_delphi_isset_reader_writer_definition(ostream& out,
34193410
t_field* tfield,
34203411
bool is_xception) {
3412+
(void)is_xception;
34213413
indent(out) << "function " << prop_name(tfield, false,"Get__isset_") << ": System.Boolean;" << '\n';
34223414
indent(out) << "procedure " << prop_name(tfield, false, "Set__isset_") << "( const value : System.Boolean);" << '\n';
34233415
}
@@ -3436,7 +3428,6 @@ void t_delphi_generator::generate_delphi_clear_union_value(ostream& out,
34363428
(void)is_union;
34373429

34383430
t_type* ftype = tfield->get_type();
3439-
bool is_xception = ftype->is_xception();
34403431

34413432
indent_impl(out) << "if " << prop_name(tfield, is_xception_class,"F__isset_") << " then begin" << '\n';
34423433
indent_up_impl();
@@ -3459,7 +3450,6 @@ void t_delphi_generator::generate_delphi_property_writer_impl(ostream& out,
34593450
(void)type;
34603451

34613452
t_type* ftype = tfield->get_type();
3462-
bool is_xception = ftype->is_xception();
34633453

34643454
indent_impl(out) << "procedure " << cls_prefix << name << "."
34653455
<< prop_name(tfield, is_xception_class,"Set")
@@ -3493,7 +3483,6 @@ void t_delphi_generator::generate_delphi_property_reader_impl(ostream& out,
34933483
(void)type;
34943484

34953485
t_type* ftype = tfield->get_type();
3496-
bool is_xception = ftype->is_xception();
34973486

34983487
indent_impl(out) << "function " << cls_prefix << name << "."
34993488
<< prop_name(tfield, is_xception_class,"Get") << ": "
@@ -3545,15 +3534,6 @@ void t_delphi_generator::generate_delphi_isset_reader_writer_impl(ostream& out,
35453534
indent_impl(out) << "end;" << '\n' << '\n';
35463535
}
35473536

3548-
void t_delphi_generator::generate_delphi_create_exception_impl(ostream& out,
3549-
string cls_prefix,
3550-
t_struct* tstruct,
3551-
bool is_exception) {
3552-
(void)cls_prefix;
3553-
3554-
string exception_cls_nm = type_name(tstruct, true, true);
3555-
string cls_nm = type_name(tstruct, true, false/*, is_exception, is_exception*/);
3556-
}
35573537

35583538
void t_delphi_generator::generate_delphi_struct_reader_impl(ostream& out,
35593539
string cls_prefix,

0 commit comments

Comments
 (0)