Skip to content

Commit 2a76328

Browse files
author
Daniel Kroening
committed
remove goto_modelt::output and goto_functionst::output
Use show_goto_functions() instead
1 parent 5841c2a commit 2a76328

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

src/goto-programs/goto_functions.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@ Date: June 2003
1313

1414
#include "goto_functions.h"
1515

16-
void goto_functionst::output(
17-
const namespacet &ns,
18-
std::ostream &out) const
19-
{
20-
for(const auto &fun : function_map)
21-
{
22-
if(fun.second.body_available())
23-
{
24-
out << "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n";
25-
26-
const symbolt &symbol=ns.lookup(fun.first);
27-
out << symbol.display_name() << " /* " << symbol.name << " */\n";
28-
fun.second.body.output(ns, symbol.name, out);
29-
30-
out << std::flush;
31-
}
32-
}
33-
}
34-
3516
void goto_functionst::compute_location_numbers()
3617
{
3718
unused_location_number = 0;

src/goto-programs/goto_functions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ class goto_functionst
7272
function_map.clear();
7373
}
7474

75-
void output(
76-
const namespacet &ns,
77-
std::ostream &out) const;
78-
7975
void compute_location_numbers();
8076
void compute_location_numbers(goto_programt &);
8177
void compute_loop_numbers();

src/goto-programs/goto_model.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ class goto_modelt : public abstract_goto_modelt
3737
goto_functions.clear();
3838
}
3939

40-
void output(std::ostream &out) const
41-
{
42-
namespacet ns(symbol_table);
43-
goto_functions.output(ns, out);
44-
}
45-
4640
goto_modelt()
4741
{
4842
}

0 commit comments

Comments
 (0)