Commit 84b3b924 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Remove unused public c'tors and member functions

This makes clear which public interface we need to implement for the
replacement of the old ExportSecretKeyCommand.

GnuPG-bug-id: 5755
parent be741531
......@@ -33,11 +33,6 @@ using namespace GpgME;
namespace Kleo::Commands::Compat {
ExportSecretKeyCommand::ExportSecretKeyCommand(KeyListController *c)
: GnuPGProcessCommand(c)
{
}
ExportSecretKeyCommand::ExportSecretKeyCommand(QAbstractItemView *v, KeyListController *c)
: GnuPGProcessCommand(v, c)
{
......@@ -50,11 +45,6 @@ ExportSecretKeyCommand::ExportSecretKeyCommand(const Key &key)
ExportSecretKeyCommand::~ExportSecretKeyCommand() {}
void ExportSecretKeyCommand::setFileName(const QString &fileName)
{
m_filename = fileName;
}
bool ExportSecretKeyCommand::preStartHook(QWidget *parent) const
{
if (!m_filename.isEmpty()) {
......
......@@ -25,16 +25,9 @@ class ExportSecretKeyCommand : public GnuPGProcessCommand
Q_OBJECT
public:
explicit ExportSecretKeyCommand(QAbstractItemView *view, KeyListController *parent);
explicit ExportSecretKeyCommand(KeyListController *parent);
explicit ExportSecretKeyCommand(const GpgME::Key &key);
~ExportSecretKeyCommand() override;
void setFileName(const QString &fileName);
QString fileName() const
{
return m_filename;
}
/* reimp */ static Restrictions restrictions()
{
return OnlyOneKey | NeedSecretKey;
......
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