1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(main): Remove unused sodium_init

Was used by auto-updater which was removed in 7475ba4689
This commit is contained in:
Anthony Bilinski 2022-03-30 04:58:01 -07:00
parent 8a8a34ea64
commit 4a74b51bbc
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -41,7 +41,6 @@
#include <QtWidgets/QMessageBox> #include <QtWidgets/QMessageBox>
#include <ctime> #include <ctime>
#include <sodium.h>
#include <stdio.h> #include <stdio.h>
#if defined(Q_OS_UNIX) #if defined(Q_OS_UNIX)
@ -290,12 +289,6 @@ int main(int argc, char* argv[])
qWarning() << "Can't init IPC, maybe we're in a jail? Continuing with reduced multi-client functionality."; qWarning() << "Can't init IPC, maybe we're in a jail? Continuing with reduced multi-client functionality.";
} }
// For the auto-updater
if (sodium_init() < 0) {
qCritical() << "Can't init libsodium";
return EXIT_FAILURE;
}
#ifdef LOG_TO_FILE #ifdef LOG_TO_FILE
QString logFileDir = settings->getPaths().getAppCacheDirPath(); QString logFileDir = settings->getPaths().getAppCacheDirPath();
QDir(logFileDir).mkpath("."); QDir(logFileDir).mkpath(".");