Skip to content

Commit 325f3c3

Browse files
committed
Remove link_to_library(goto_functions, symbol_table, ...)
There are no in-tree uses of this function. External users should use link_to_library(goto_model, ...). This is in preparation of further changes that will only support the goto_modelt-variant.
1 parent b3cc3e9 commit 325f3c3

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

src/goto-programs/link_to_library.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,6 @@ void link_to_library(
2727
const std::function<
2828
void(const std::set<irep_idt> &, symbol_tablet &, message_handlert &)>
2929
&library)
30-
{
31-
link_to_library(
32-
goto_model.symbol_table,
33-
goto_model.goto_functions,
34-
message_handler,
35-
library);
36-
}
37-
38-
/// Complete missing function definitions using the \p library.
39-
/// \param symbol_table: symbol table that may contain symbols with missing
40-
/// function bodies
41-
/// \param goto_functions: goto functions that may contain function calls with
42-
/// missing function bodies
43-
/// \param message_handler: message handler to report library processing
44-
/// problems
45-
/// \param library: generator function that produces function definitions for a
46-
/// given set of symbol names that have no body.
47-
void link_to_library(
48-
symbol_tablet &symbol_table,
49-
goto_functionst &goto_functions,
50-
message_handlert &message_handler,
51-
const std::function<
52-
void(const std::set<irep_idt> &, symbol_tablet &, message_handlert &)>
53-
&library)
5430
{
5531
// this needs a fixedpoint, as library functions
5632
// may depend on other library functions

src/goto-programs/link_to_library.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,10 @@ Author: Daniel Kroening, kroening@kroening.com
1717

1818
#include <util/irep.h>
1919

20-
class goto_functionst;
2120
class goto_modelt;
2221
class message_handlert;
2322
class symbol_tablet;
2423

25-
void link_to_library(
26-
symbol_tablet &,
27-
goto_functionst &,
28-
message_handlert &,
29-
const std::function<
30-
void(const std::set<irep_idt> &, symbol_tablet &, message_handlert &)> &);
31-
3224
void link_to_library(
3325
goto_modelt &,
3426
message_handlert &,

0 commit comments

Comments
 (0)