Skip to content

Commit 0c4574f

Browse files
committed
Removes get_namespace() from contracts module
Signed-off-by: Felipe R. Monteiro <felisous@amazon.com>
1 parent c5871d7 commit 0c4574f

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/goto-instrument/contracts/contracts.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,6 @@ const symbolt &code_contractst::new_tmp_symbol(
679679
symbol_table);
680680
}
681681

682-
const namespacet &code_contractst::get_namespace() const
683-
{
684-
return ns;
685-
}
686-
687682
symbol_tablet &code_contractst::get_symbol_table()
688683
{
689684
return symbol_table;

src/goto-instrument/contracts/contracts.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ class code_contractst
129129
const loopt &loop,
130130
const irep_idt &mode);
131131

132-
const namespacet &get_namespace() const;
133-
134132
// for "helper" classes to update symbol table.
135133
symbol_tablet &get_symbol_table();
136134
goto_functionst &get_goto_functions();

src/goto-instrument/contracts/memory_predicates.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ void is_fresh_baset::update_fn_call(
227227

228228
// fixing the function name.
229229
to_symbol_expr(call.function()).set_identifier(fn_name);
230-
log.debug() << "printing updated call expression: "
231-
<< expr2c(call, parent.get_namespace()) << "\n";
232230

233231
ins->set_function_call(call);
234232
}

0 commit comments

Comments
 (0)