Skip to content

Commit cefd080

Browse files
committed
Remove deprecated and unused methods
These were deprecated in 2019 and had no in-tree users left.
1 parent ff1e81e commit cefd080

File tree

8 files changed

+0
-52
lines changed

8 files changed

+0
-52
lines changed

jbmc/src/java_bytecode/java_utils.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ Author: Daniel Kroening, [email protected]
2323
#include <set>
2424
#include <unordered_set>
2525

26-
bool java_is_array_type(const typet &type)
27-
{
28-
if(type.id() != ID_struct)
29-
return false;
30-
return is_java_array_tag(to_struct_type(type).get_tag());
31-
}
32-
3326
bool is_java_string_type(const struct_typet &struct_type)
3427
{
3528
return java_string_library_preprocesst::implements_java_char_sequence(

jbmc/src/java_bytecode/java_utils.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ Author: Daniel Kroening, [email protected]
2121

2222
#include <goto-programs/resolve_inherited_component.h>
2323

24-
DEPRECATED(SINCE(2019, 6, 10, "use is_java_array_type instead"))
25-
bool java_is_array_type(const typet &type);
26-
2724
/// Returns true iff the argument represents a string type (CharSequence,
2825
/// StringBuilder, StringBuffer or String).
2926
/// The check for the length and data components is necessary in the case where

src/goto-programs/interpreter.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,16 +428,6 @@ void interpretert::execute_decl()
428428
PRECONDITION(pc->code.get_statement()==ID_decl);
429429
}
430430

431-
/// retrieves the member at offset
432-
/// \par parameters: an object and a memory offset
433-
struct_typet::componentt interpretert::get_component(
434-
const irep_idt &object,
435-
const mp_integer &offset)
436-
{
437-
const symbolt &symbol = ns.lookup(object);
438-
return get_component(symbol.type, offset);
439-
}
440-
441431
/// Retrieves the member at \p offset of an object of type \p object_type.
442432
struct_typet::componentt
443433
interpretert::get_component(const typet &object_type, const mp_integer &offset)

src/goto-programs/interpreter_class.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ class interpretert:public messaget
196196
bool unbounded_size(const typet &);
197197
mp_integer get_size(const typet &type);
198198

199-
DEPRECATED("use the object_type version instead")
200-
struct_typet::componentt get_component(
201-
const irep_idt &object,
202-
const mp_integer &offset);
203-
204199
struct_typet::componentt
205200
get_component(const typet &object_type, const mp_integer &offset);
206201

src/goto-symex/renaming_level.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@ Author: Romain Brenguier, [email protected]
1717

1818
#include "goto_symex_state.h"
1919

20-
void get_variables(
21-
const symex_renaming_levelt &current_names,
22-
std::unordered_set<ssa_exprt, irep_hash> &vars)
23-
{
24-
symex_renaming_levelt::viewt view;
25-
current_names.get_view(view);
26-
27-
for(const auto &pair : view)
28-
{
29-
vars.insert(pair.second.first);
30-
}
31-
}
32-
3320
renamedt<ssa_exprt, L0>
3421
symex_level0(ssa_exprt ssa_expr, const namespacet &ns, std::size_t thread_nr)
3522
{

src/goto-symex/renaming_level.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ Author: Romain Brenguier, [email protected]
3131
using symex_renaming_levelt =
3232
sharing_mapt<irep_idt, std::pair<ssa_exprt, std::size_t>>;
3333

34-
/// Add the \c ssa_exprt of current_names to vars
35-
DEPRECATED(SINCE(2019, 6, 5, "Unused"))
36-
void get_variables(
37-
const symex_renaming_levelt &current_names,
38-
std::unordered_set<ssa_exprt, irep_hash> &vars);
39-
4034
/// Set the level 0 renaming of SSA expressions.
4135
/// Level 0 corresponds to threads.
4236
/// The renaming is built for one particular interleaving.

src/util/ssa_expr.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,6 @@ bool ssa_exprt::can_build_identifier(const exprt &expr)
218218
return false;
219219
}
220220

221-
void ssa_exprt::update_identifier()
222-
{
223-
::update_identifier(*this);
224-
}
225-
226221
ssa_exprt remove_level_2(ssa_exprt ssa)
227222
{
228223
ssa.remove_level_2();

src/util/ssa_expr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ class ssa_exprt:public symbol_exprt
7575
return get(ID_L2);
7676
}
7777

78-
DEPRECATED(SINCE(2019, 05, 29, "Should only be used internally"))
79-
void update_identifier();
80-
8178
/// Used to determine whether or not an identifier can be built before trying
8279
/// and getting an exception
8380
static bool can_build_identifier(const exprt &src);

0 commit comments

Comments
 (0)