ssl: Remove fallback code for missing SSL support
[quassel.git] / src / qtui / settingspages / identityeditwidget.h
index f61a522..684bdd4 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef IDENTITYEDITWIDGET_H
-#define IDENTITYEDITWIDGET_H
+#pragma once
 
-#include "ui_identityeditwidget.h"
-#include "ui_nickeditdlg.h"
-
-#ifdef HAVE_SSL
-#    include <QSslCertificate>
-#    include <QSslKey>
-#endif
+#include <QSslCertificate>
+#include <QSslKey>
 
 #include "clientidentity.h"
 
+#include "ui_identityeditwidget.h"
+#include "ui_nickeditdlg.h"
+
 class IdentityEditWidget : public QWidget
 {
     Q_OBJECT
@@ -53,9 +50,7 @@ public slots:
     void showAdvanced(bool advanced);
 
 protected:
-#ifdef HAVE_SSL
     bool eventFilter(QObject* watched, QEvent* event) override;
-#endif
 
 signals:
     void requestEditSsl();
@@ -68,27 +63,21 @@ private slots:
     void on_nickUp_clicked();
     void on_nickDown_clicked();
 
-#ifdef HAVE_SSL
     void on_clearOrLoadKeyButton_clicked();
     void on_clearOrLoadCertButton_clicked();
-#endif
     void setWidgetStates();
 
-#ifdef HAVE_SSL
     void sslDragEnterEvent(QDragEnterEvent* event);
     void sslDropEvent(QDropEvent* event, bool isCert);
-#endif
 
 private:
     Ui::IdentityEditWidget ui;
     bool _editSsl;
 
-#ifdef HAVE_SSL
     QSslKey keyByFilename(const QString& filename);
     void showKeyState(const QSslKey& key);
     QSslCertificate certByFilename(const QString& filename);
     void showCertState(const QSslCertificate& cert);
-#endif
 
     bool testHasChanged();
 };
@@ -111,5 +100,3 @@ private:
     QString oldNick;
     QStringList existing;
 };
-
-#endif  // IDENTITYEDITWIDGET_H