Skip to content

Commit 282e063

Browse files
committed
chore: remove initExceptionTranslator
1 parent f9f6e41 commit 282e063

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

src/legacy/api/NetworkAPI.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,6 @@ Local<Value> WSClientClass::connectAsync(const Arguments& args) {
347347
callback{std::move(callbackFunc)},
348348
engine{EngineScope::currentEngine()},
349349
pluginName{getEngineOwnData()->pluginName}]() mutable {
350-
351-
#ifdef NDEBUG
352-
ll::error_utils::initExceptionTranslator();
353-
#endif
354350
try {
355351
bool result = false;
356352
try {

src/legacy/api/SystemAPI.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ bool NewProcess(
5555

5656
std::thread([hRead{hRead}, hProcess{pi.hProcess}, callback{std::move(callback)}, timeLimit{timeLimit}, wCmd{wCmd}](
5757
) mutable {
58-
#ifndef LSE_DEBUG
59-
ll::utils::error_utils::initExceptionTranslator();
60-
#endif
6158
if (timeLimit == -1) {
6259
WaitForSingleObject(hProcess, INFINITE);
6360
} else {

src/legacy/engine/MessageSystem.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,6 @@ void MessageSystemLoopOnce() {
358358
}
359359

360360
void InitMessageSystem() {
361-
#ifdef NDEBUG
362-
ll::error_utils::initExceptionTranslator();
363-
#endif
364361
globalShareData->messageSystemHandlers[LLSE_BACKEND_TYPE] = {ModuleMessage::handle, ModuleMessage::cleanup};
365362

366363
ll::event::EventBus::getInstance().emplaceListener<ll::event::ServerStoppingEvent>(

src/lse/Entry.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ void initializeLegacyStuff() {
102102

103103
bool LegacyScriptEngine::load() {
104104
auto& logger = getSelf().getLogger();
105-
#ifdef NDEBUG
106-
ll::error_utils::initExceptionTranslator();
107-
#endif
108105

109106
try {
110107
auto result = ll::i18n::getInstance().load(getSelf().getLangDir());

0 commit comments

Comments
 (0)