Skip to content

Commit

Permalink
[utilities] Remove backup removal. Fixes JB#37682
Browse files Browse the repository at this point in the history
Old vault version, not needed anymore.
  • Loading branch information
pvuorela committed Apr 1, 2021
1 parent 86e5369 commit 4963e8b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 45 deletions.
21 changes: 0 additions & 21 deletions plugin/utiltools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,6 @@ UtilTools::~UtilTools()
{
}

void UtilTools::removeBackups(QJSValue successCallback, QJSValue errorCallback)
{
QDir vaultDir(QDir::homePath() + "/.vault");

if (vaultDir.removeRecursively()) {
if (successCallback.isCallable()) {
QJSValue result = successCallback.call();
if (result.isError()) {
qmlInfo(this) << "Error executing callback";
}
}
} else {
if (errorCallback.isCallable()) {
QJSValue result = errorCallback.call();
if (result.isError()) {
qmlInfo(this) << "Error executing error callback";
}
}
}
}

void UtilTools::cleanRpmDb(QJSValue successCallback, QJSValue errorCallback)
{
execute(SystemTool, QStringList("repair_rpm_db"), successCallback, errorCallback);
Expand Down
3 changes: 0 additions & 3 deletions plugin/utiltools.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class UtilTools: public QObject
UtilTools(QObject *parent = 0);
virtual ~UtilTools();

Q_INVOKABLE void removeBackups(QJSValue successCallback = QJSValue::UndefinedValue,
QJSValue errorCallback = QJSValue::UndefinedValue);

Q_INVOKABLE void cleanRpmDb(QJSValue successCallback = QJSValue::UndefinedValue,
QJSValue errorCallback = QJSValue::UndefinedValue);

Expand Down
2 changes: 1 addition & 1 deletion qml/ActionList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Column {
var info = { name: name, path: "plugins/" + name + ".qml" }
plugins.append(info)
}
var names = [ "RestartNetwork", "RestartUI", "CleanBackup",
var names = [ "RestartNetwork", "RestartUI",
"CleanPackageCache", "CleanTracker" ]
for (var i = 0; i < names.length; ++i)
justLoad(names[i])
Expand Down
20 changes: 0 additions & 20 deletions qml/plugins/CleanBackup.qml

This file was deleted.

0 comments on commit 4963e8b

Please sign in to comment.