diff --git a/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp b/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp @@ -154,8 +154,9 @@ backupLogDataKey = maybeBackupLogDataKey.value(); } - SQLiteQueryExecutor::initialize( - databasePath, backupDataKey, backupLogDataKey); + SQLiteQueryExecutor::sqliteFilePath = databasePath; + SQLiteQueryExecutor::backupDataKey = backupDataKey; + SQLiteQueryExecutor::backupLogDataKey = backupLogDataKey; }); } diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h @@ -205,13 +205,6 @@ std::vector getDMOperations() const override; std::vector getDMOperationsByType(const std::string &operationType) const override; - -#ifndef EMSCRIPTEN - static void initialize( - std::string &databasePath, - std::string &backupDataKey, - std::string &backupLogDataKey); -#endif }; } // namespace comm diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp @@ -21,11 +21,7 @@ #include #ifndef EMSCRIPTEN -#include "../CryptoTools/CryptoModule.h" #include "../Tools/ServicesUtils.h" -#include "PlatformSpecificTools.h" -#include "StaffUtils.h" -#include "lib.rs.h" #endif const int CONTENT_ACCOUNT_ID = 1; @@ -1629,19 +1625,6 @@ SQLiteQueryExecutor::getConnection(), query, types); } -#ifndef EMSCRIPTEN - -void SQLiteQueryExecutor::initialize( - std::string &databasePath, - std::string &backupDataKey, - std::string &backupLogDataKey) { - SQLiteQueryExecutor::sqliteFilePath = databasePath; - SQLiteQueryExecutor::backupDataKey = backupDataKey; - SQLiteQueryExecutor::backupLogDataKey = backupLogDataKey; -} - -#endif - void SQLiteQueryExecutor::copyTablesDataUsingAttach( sqlite3 *db, const std::string &sourceDbPath,