Skip to content

Commit 775fa44

Browse files
Delete unused function process_operands
This is not used
1 parent dc13905 commit 775fa44

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -328,42 +328,6 @@ exprt::operandst java_string_library_preprocesst::process_operands(
328328
return ops;
329329
}
330330

331-
/// Converts the operands of the equals function to string expressions and
332-
/// outputs these conversions. As a side effect of the conversions it adds some
333-
/// code to init_code.
334-
/// \param operands: a list of expressions
335-
/// \param loc: location in the source
336-
/// \param symbol_table: symbol table
337-
/// \param init_code: code block, in which declaration of some arguments may be
338-
/// added
339-
/// \return a list of expressions
340-
exprt::operandst
341-
java_string_library_preprocesst::process_equals_function_operands(
342-
const exprt::operandst &operands,
343-
const source_locationt &loc,
344-
symbol_table_baset &symbol_table,
345-
code_blockt &init_code)
346-
{
347-
PRECONDITION(operands.size()==2);
348-
exprt::operandst ops;
349-
const exprt &op0=operands[0];
350-
const exprt &op1 = operands[1];
351-
PRECONDITION(implements_java_char_sequence_pointer(op0.type()));
352-
353-
ops.push_back(
354-
convert_exprt_to_string_exprt(
355-
op0, loc, symbol_table, loc.get_function(), init_code));
356-
357-
// TODO: Manage the case where we have a non-String Object (this should
358-
// probably be handled upstream. At any rate, the following code should be
359-
// protected with assertions on the type of op1.
360-
const typecast_exprt tcast(op1, to_pointer_type(op0.type()));
361-
ops.push_back(
362-
convert_exprt_to_string_exprt(
363-
tcast, loc, symbol_table, loc.get_function(), init_code));
364-
return ops;
365-
}
366-
367331
/// Finds the type of the data component
368332
/// \param type: a type containing a "data" component
369333
/// \param symbol_table: symbol table

jbmc/src/java_bytecode/java_string_library_preprocess.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@ class java_string_library_preprocesst:public messaget
211211
symbol_table_baset &symbol_table,
212212
code_blockt &init_code);
213213

214-
exprt::operandst process_equals_function_operands(
215-
const exprt::operandst &operands,
216-
const source_locationt &loc,
217-
symbol_table_baset &symbol_table,
218-
code_blockt &init_code);
219-
220214
refined_string_exprt replace_char_array(
221215
const exprt &array_pointer,
222216
const source_locationt &loc,

0 commit comments

Comments
 (0)