Skip to content

Commit

Permalink
refactor (UBCryptoUtils): Remove last public functions
Browse files Browse the repository at this point in the history
No UBCryptoUtils object will ever created, so destroy() is a noop.
Remove unused public functions
  • Loading branch information
Vekhir committed Feb 19, 2025
1 parent f4cf942 commit 36e67f0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions src/core/UBApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@

#include "ui_mainWindow.h"

#include "frameworks/UBCryptoUtils.h"
#include "tools/UBToolsManager.h"

#include "UBDisplayManager.h"
Expand Down Expand Up @@ -171,8 +170,6 @@ UBApplication::~UBApplication()

UBSettings::destroy();

UBCryptoUtils::destroy();

UBToolsManager::destroy();

if(mApplicationTranslator != NULL){
Expand Down
15 changes: 0 additions & 15 deletions src/frameworks/UBCryptoUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ UBCryptoUtils* UBCryptoUtils::sInstance(0);
QString UBCryptoUtils::sAESKey("9ecHaspud9uD9ste5erAchehefrup3echej-caje6&thestawacuk=h#F3jet3aF");
QString UBCryptoUtils::sAESSalt("6f0083e0-a90c-11de-ac21-0002a5d5c51b");

UBCryptoUtils* UBCryptoUtils::instance()
{
if(!sInstance)
sInstance = new UBCryptoUtils(UBApplication::staticMemoryCleaner);

return sInstance;
}

void UBCryptoUtils::destroy()
{
if (sInstance)
delete sInstance;
sInstance = NULL;
}


UBCryptoUtils::UBCryptoUtils(QObject * pParent)
: QObject(pParent)
Expand Down
3 changes: 0 additions & 3 deletions src/frameworks/UBCryptoUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class UBCryptoUtils : public QObject

public:

static UBCryptoUtils* instance();
static void destroy();

private:

UBCryptoUtils(QObject * pParent = 0);
Expand Down

0 comments on commit 36e67f0

Please sign in to comment.