Skip to content

Commit cdc0b5c

Browse files
committed
Deduplicate apt_sessiont constructor implementations
So that only one of them needs to be updated in the subsequent refactor.
1 parent c1d8eb2 commit cdc0b5c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/libcprover-cpp/api.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,8 @@
1919

2020
extern configt config;
2121

22-
api_sessiont::api_sessiont()
23-
: message_handler(
24-
util_make_unique<null_message_handlert>(null_message_handlert{})),
25-
options(util_make_unique<optionst>(optionst{}))
22+
api_sessiont::api_sessiont() : api_sessiont{api_optionst::create()}
2623
{
27-
// Needed to initialise the language options correctly
28-
cmdlinet cmdline;
29-
// config is global in config.cpp
30-
config.set(cmdline);
31-
// Initialise C language mode
32-
register_language(new_ansi_c_language);
3324
}
3425

3526
api_sessiont::api_sessiont(const api_optionst &options)

0 commit comments

Comments
 (0)