@@ -328,42 +328,6 @@ exprt::operandst java_string_library_preprocesst::process_operands(
328
328
return ops;
329
329
}
330
330
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
-
367
331
// / Finds the type of the data component
368
332
// / \param type: a type containing a "data" component
369
333
// / \param symbol_table: symbol table
0 commit comments