aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-13 10:01:06 +0000
committersaturneric <[email protected]>2023-12-13 10:01:06 +0000
commit42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch)
treea3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/ui/GpgFrontendApplication.cpp
parentfeat: move test to src and add submodule googletest (diff)
downloadGpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.tar.gz
GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.zip
refactor: improve the structure of main,core and test module
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r--src/ui/GpgFrontendApplication.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index 7b079de1..a9e4efd2 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -53,25 +53,6 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[])
QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
}
-GpgFrontendApplication *GpgFrontendApplication::GetInstance(int argc,
- char *argv[],
- bool new_instance) {
- static GpgFrontendApplication *instance = nullptr;
- static int static_argc = argc;
- static char **static_argv = argv;
-
- if (new_instance || !instance) {
- if (instance != nullptr) {
- SPDLOG_DEBUG("old application exists, quitting...");
- instance->quit();
- delete instance;
- }
- SPDLOG_DEBUG("creating new application instance, argc: {}", argc);
- instance = new GpgFrontendApplication(static_argc, static_argv);
- }
- return instance;
-}
-
bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
#ifdef RELEASE
try {