Commit 4c3d353b authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Remove unused setters

The command gets all information directly from the dialog it opens.

GnuPG-bug-id: 5245
parent 06f289cc
......@@ -134,7 +134,6 @@ CertifyCertificateCommand::CertifyCertificateCommand(const std::vector<GpgME::Us
void CertifyCertificateCommand::Private::init()
{
}
CertifyCertificateCommand::~CertifyCertificateCommand()
......@@ -142,34 +141,6 @@ CertifyCertificateCommand::~CertifyCertificateCommand()
qCDebug(KLEOPATRA_LOG);
}
void CertifyCertificateCommand::setCertificationExportable(bool on)
{
Q_UNUSED(on)
}
void CertifyCertificateCommand::setCertificationRevocable(bool on)
{
Q_UNUSED(on)
}
void CertifyCertificateCommand::setCertifyingKey(const Key &signer)
{
Q_UNUSED(signer)
}
void CertifyCertificateCommand::setUserIDs(const std::vector<UserID> &uids)
{
d->uids = uids;
if (!uids.empty() && d->key().isNull()) {
setKey(uids.front().parent());
}
}
void CertifyCertificateCommand::setUserID(const UserID &uid)
{
setUserIDs(std::vector<UserID>(1, uid));
}
void CertifyCertificateCommand::doStart()
{
......
......@@ -37,14 +37,6 @@ public:
return OnlyOneKey | MustBeOpenPGP;
}
void setCertificationExportable(bool on);
void setCertificationRevocable(bool on);
void setCertifyingKey(const GpgME::Key &key);
void setUserID(const GpgME::UserID &uid);
void setUserIDs(const std::vector<GpgME::UserID> &uids);
private:
void doStart() override;
void doCancel() override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment