mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 17:16:33 -05:00
Removed dead code
This commit is contained in:
parent
61c4fe8992
commit
2866bc626a
5 changed files with 0 additions and 80 deletions
|
|
@ -62,7 +62,6 @@ set(keepassx_SOURCES
|
||||||
core/ScreenLockListenerPrivate.cpp
|
core/ScreenLockListenerPrivate.cpp
|
||||||
core/TimeDelta.cpp
|
core/TimeDelta.cpp
|
||||||
core/TimeInfo.cpp
|
core/TimeInfo.cpp
|
||||||
core/ToDbExporter.cpp
|
|
||||||
core/Tools.cpp
|
core/Tools.cpp
|
||||||
core/Translator.cpp
|
core/Translator.cpp
|
||||||
core/Uuid.cpp
|
core/Uuid.cpp
|
||||||
|
|
|
||||||
|
|
@ -374,12 +374,6 @@ void Database::setEmitModified(bool value)
|
||||||
m_emitModified = value;
|
m_emitModified = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Database::copyAttributesFrom(const Database* other)
|
|
||||||
{
|
|
||||||
m_data = other->m_data;
|
|
||||||
m_data.kdf = m_data.kdf->clone();
|
|
||||||
m_metadata->copyAttributesFrom(other->m_metadata);
|
|
||||||
}
|
|
||||||
|
|
||||||
Uuid Database::uuid()
|
Uuid Database::uuid()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,6 @@ public:
|
||||||
void recycleGroup(Group* group);
|
void recycleGroup(Group* group);
|
||||||
void emptyRecycleBin();
|
void emptyRecycleBin();
|
||||||
void setEmitModified(bool value);
|
void setEmitModified(bool value);
|
||||||
void copyAttributesFrom(const Database* other);
|
|
||||||
void merge(const Database* other);
|
void merge(const Database* other);
|
||||||
QString saveToFile(QString filePath);
|
QString saveToFile(QString filePath);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2014 Felix Geyer <debfx@fobos.de>
|
|
||||||
* Copyright (C) 2014 Florian Geyer <blueice@fobos.de>
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 or (at your option)
|
|
||||||
* version 3 of the License.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ToDbExporter.h"
|
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/Group.h"
|
|
||||||
#include "core/Metadata.h"
|
|
||||||
|
|
||||||
Database* ToDbExporter::exportGroup(Group* group)
|
|
||||||
{
|
|
||||||
Database* oldDb = group->database();
|
|
||||||
Q_ASSERT(oldDb);
|
|
||||||
|
|
||||||
Database* db = new Database();
|
|
||||||
Group* clonedGroup = group->clone(Entry::CloneNewUuid | Entry::CloneIncludeHistory);
|
|
||||||
clonedGroup->setParent(db->rootGroup());
|
|
||||||
|
|
||||||
QSet<Uuid> customIcons = group->customIconsRecursive();
|
|
||||||
db->metadata()->copyCustomIcons(customIcons, oldDb->metadata());
|
|
||||||
|
|
||||||
db->copyAttributesFrom(oldDb);
|
|
||||||
|
|
||||||
return db;
|
|
||||||
}
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2014 Felix Geyer <debfx@fobos.de>
|
|
||||||
* Copyright (C) 2014 Florian Geyer <blueice@fobos.de>
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 or (at your option)
|
|
||||||
* version 3 of the License.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef KEEPASSX_TODBEXPORTER_H
|
|
||||||
#define KEEPASSX_TODBEXPORTER_H
|
|
||||||
|
|
||||||
#include "core/Exporter.h"
|
|
||||||
|
|
||||||
class Database;
|
|
||||||
class Group;
|
|
||||||
|
|
||||||
class ToDbExporter : Exporter
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
Database* exportGroup(Group* group);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // KEEPASSX_TODBEXPORTER_H
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue