Skip to content

Commit bf84079

Browse files
committed
Remove unused parameter tmp_var_type from save_stack_entries
This is a follow-up cleanup to 767003e, which removed the use of this parameter.
1 parent 1117cac commit bf84079

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,6 @@ code_blockt java_bytecode_convert_methodt::convert_putstatic(
25362536

25372537
save_stack_entries(
25382538
"stack_static_field",
2539-
symbol_expr.type(),
25402539
block,
25412540
bytecode_write_typet::STATIC_FIELD,
25422541
symbol_expr.get_identifier());
@@ -2551,7 +2550,6 @@ code_blockt java_bytecode_convert_methodt::convert_putfield(
25512550
code_blockt block;
25522551
save_stack_entries(
25532552
"stack_field",
2554-
op[1].type(),
25552553
block,
25562554
bytecode_write_typet::FIELD,
25572555
arg0.get(ID_component_name));
@@ -2685,7 +2683,6 @@ code_blockt java_bytecode_convert_methodt::convert_iinc(
26852683
const exprt &locvar = variable(arg0, 'i', address, NO_CAST);
26862684
save_stack_entries(
26872685
"stack_iinc",
2688-
java_int_type(),
26892686
block,
26902687
bytecode_write_typet::VARIABLE,
26912688
to_symbol_expr(locvar).get_identifier());
@@ -2851,7 +2848,6 @@ code_blockt java_bytecode_convert_methodt::convert_store(
28512848

28522849
save_stack_entries(
28532850
"stack_store",
2854-
toassign.type(),
28552851
block,
28562852
bytecode_write_typet::VARIABLE,
28572853
var_name);
@@ -2885,7 +2881,7 @@ code_blockt java_bytecode_convert_methodt::convert_astore(
28852881
block.add_source_location() = location;
28862882

28872883
save_stack_entries(
2888-
"stack_astore", element_type, block, bytecode_write_typet::ARRAY_REF, "");
2884+
"stack_astore", block, bytecode_write_typet::ARRAY_REF, "");
28892885

28902886
code_assignt array_put(element, op[2]);
28912887
array_put.add_source_location() = location;
@@ -3133,13 +3129,11 @@ irep_idt java_bytecode_convert_methodt::get_static_field(
31333129
/// Create temporary variables if a write instruction can have undesired side-
31343130
/// effects.
31353131
/// \param tmp_var_prefix: The prefix string to use for new temporary variables
3136-
/// \param tmp_var_type: The type of the temporary variable.
31373132
/// \param[out] block: The code block the assignment is added to if required.
31383133
/// \param write_type: The enumeration type of the write instruction.
31393134
/// \param identifier: The identifier of the symbol in the write instruction.
31403135
void java_bytecode_convert_methodt::save_stack_entries(
31413136
const std::string &tmp_var_prefix,
3142-
const typet &tmp_var_type,
31433137
code_blockt &block,
31443138
const bytecode_write_typet write_type,
31453139
const irep_idt &identifier)

jbmc/src/java_bytecode/java_bytecode_convert_method_class.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ class java_bytecode_convert_methodt:public messaget
293293

294294
void save_stack_entries(
295295
const std::string &,
296-
const typet &,
297296
code_blockt &,
298297
const bytecode_write_typet,
299298
const irep_idt &);

0 commit comments

Comments
 (0)