summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-09-06 10:16:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-09-06 10:16:09 +0900
commit281a7702cf2b83f13eab74d38758893584e7ecb6 (patch)
tree9ded234ddf08db57a1bc80e72d84bdb3945498c7 /src/main.cpp
parent0204f596eb83c452ae7ffeefc728668b414b1f16 (diff)
downloaduniversal-indent-gui-tqt-281a7702cf2b83f13eab74d38758893584e7ecb6.tar.gz
universal-indent-gui-tqt-281a7702cf2b83f13eab74d38758893584e7ecb6.zip
Remove logger code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main.cpp b/src/main.cpp
index dded8ed..826ddfe 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,7 +19,6 @@
#include "MainWindow.h"
-// -- #include "debugging/TSLogger.h"
// -- #include "IndentHandler.h"
#include "SettingsPaths.h"
// -- #include "UiGuiIndentServer.h"
@@ -37,8 +36,6 @@
#include <tclap/CmdLine.h>
-// -- using namespace tschweitzer::debugging;
-
/*!
/brief Entry point to UniversalIndentGUI application.
@@ -128,20 +125,11 @@ int main(int argc, char *argv[])
// -- UiGuiIndentServer server;
MainWindow *mainWindow = NULL;
// -- IndentHandler *indentHandler = NULL;
-// --
- // Init and install the logger function.
- // Setting UTF-8 as default 8-Bit encoding to ensure that tqDebug does no false string conversion.
+
+ // Setting UTF-8 as default 8-Bit encoding
TQTextCodec::setCodecForCStrings(TQTextCodec::codecForName("UTF-8"));
TQTextCodec::setCodecForLocale(TQTextCodec::codecForName("UTF-8"));
-// -- // Force creation of an TSLogger instance here, to avoid recursion with SettingsPaths init function.
-// -- #ifdef _DEBUG
-// -- TSLogger::getInstance(0);
-// -- #else
-// -- TSLogger::getInstance(verboseLevel);
-// -- #endif
-// -- qInstallMsgHandler(TSLogger::messageHandler);
-// -- TSLogger::messageHandler(TSLoggerInfoMsg, TQString("Starting UiGUI Version %1 %2").arg(PROGRAM_VERSION_STRING).toAscii());
-// --
+
// Start normal with full gui and without server.
if (!startAsPlugin && !startAsServer) {
mainWindow = new MainWindow(file2OpenOnStart);
@@ -174,7 +162,5 @@ int main(int argc, char *argv[])
// -- delete indentHandler;
delete mainWindow;
-// -- TSLogger::deleteInstance();
-
return returnValue;
}