Commit a6e7a2c0 authored by Laurent Montel's avatar Laurent Montel 😁

Remove dead code

parent bb07f326
......@@ -327,7 +327,6 @@ SecurityPageWarningTab::SecurityPageWarningTab( QWidget * parent )
mWidget = new Ui::WarningConfiguration;
mWidget->setupUi( this );
mWidget->chiasmusButton->hide();
connect( mWidget->warnGroupBox, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
connect( mWidget->mWarnUnsigned, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
......@@ -335,7 +334,6 @@ SecurityPageWarningTab::SecurityPageWarningTab( QWidget * parent )
connect( mWidget->warnReceiverNotInCertificateCB, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
connect( mWidget->gnupgButton, SIGNAL(clicked()), SLOT(slotConfigureGnupg()) );
//connect( mWidget->chiasmusButton, SIGNAL(clicked()), SLOT(slotConfigureChiasmus()) );
connect( mWidget->enableAllWarningsPB, SIGNAL(clicked()), SLOT(slotReenableAllWarningsClicked()) );
}
......@@ -424,30 +422,6 @@ void SecurityPage::WarningTab::slotConfigureGnupg()
delete dlg;
}
#if 0
void SecurityPage::WarningTab::slotConfigureChiasmus()
{
using namespace Kleo;
// Find Chiasmus backend:
if ( const CryptoBackendFactory * const bf = Kleo::CryptoBackendFactory::instance() )
for ( unsigned int i = 0 ; const CryptoBackend * const b = bf->backend( i ) ; ++i )
if ( b->name() == QLatin1String( "Chiasmus" ) )
if ( CryptoConfig * const c = b->config() ) {
QPointer<CryptoConfigDialog> dlg( new CryptoConfigDialog( c, this ) );
dlg->exec();
delete dlg;
break;
} else {
kWarning() << "Found Chiasmus backend, but there doesn't seem to be a config object available from it.";
}
else
kDebug() << "Skipping" << b->name() << "backend (not \"Chiasmus\")";
else
kDebug() << "Kleo::CryptoBackendFactory::instance() returned NULL!";
}
#endif
////
QString SecurityPage::SMimeTab::helpAnchor() const
{
return QString::fromLatin1("configure-security-smime-validation");
......
......@@ -104,7 +104,6 @@ public:
private Q_SLOTS:
void slotReenableAllWarningsClicked();
void slotConfigureGnupg();
//void slotConfigureChiasmus();
private:
void doLoadFromGlobalSettings();
......
......@@ -408,30 +408,6 @@ The recommended SPHINX setting is 14 days.
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<item>
<spacer name="horizontalSpacer2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="chiasmusButton">
<property name="text">
<string>Chiasmus Settings...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<property name="margin">
......@@ -483,7 +459,6 @@ The recommended SPHINX setting is 14 days.
<tabstop>mWarnEncrChainCertExpiresSB</tabstop>
<tabstop>mWarnEncrRootCertExpiresSB</tabstop>
<tabstop>gnupgButton</tabstop>
<tabstop>chiasmusButton</tabstop>
<tabstop>enableAllWarningsPB</tabstop>
</tabstops>
<resources/>
......
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