removed unused function in SettingsDialog

This commit is contained in:
fourtf 2020-02-28 19:12:22 +01:00
parent b887f1c90e
commit d83b597c75
2 changed files with 1 additions and 11 deletions

View file

@ -20,8 +20,6 @@
namespace chatterino { namespace chatterino {
SettingsDialog *SettingsDialog::instance_ = nullptr;
SettingsDialog::SettingsDialog() SettingsDialog::SettingsDialog()
: BaseWindow(BaseWindow::DisableCustomScaling) : BaseWindow(BaseWindow::DisableCustomScaling)
{ {
@ -138,11 +136,6 @@ void SettingsDialog::filterElements(const QString &text)
} }
} }
SettingsDialog *SettingsDialog::instance()
{
return SettingsDialog::instance_;
}
void SettingsDialog::addTabs() void SettingsDialog::addTabs()
{ {
this->ui_.tabContainer->setMargin(0); this->ui_.tabContainer->setMargin(0);

View file

@ -34,7 +34,6 @@ class SettingsDialog : public BaseWindow
public: public:
SettingsDialog(); SettingsDialog();
static SettingsDialog *instance(); // may be NULL
static void showDialog(SettingsDialogPreference preferredTab = static void showDialog(SettingsDialogPreference preferredTab =
SettingsDialogPreference::NoPreference); SettingsDialogPreference::NoPreference);
@ -44,18 +43,16 @@ protected:
virtual void showEvent(QShowEvent *) override; virtual void showEvent(QShowEvent *) override;
private: private:
static SettingsDialog *instance_;
void refresh(); void refresh();
void initUi(); void initUi();
SettingsDialogTab *tab(SettingsTabId id);
void addTabs(); void addTabs();
void addTab(std::function<SettingsPage *()> page, const QString &name, void addTab(std::function<SettingsPage *()> page, const QString &name,
const QString &iconPath, SettingsTabId id = {}, const QString &iconPath, SettingsTabId id = {},
Qt::Alignment alignment = Qt::AlignTop); Qt::Alignment alignment = Qt::AlignTop);
void selectTab(SettingsDialogTab *tab, const bool byUser = true); void selectTab(SettingsDialogTab *tab, const bool byUser = true);
void selectTab(SettingsTabId id); void selectTab(SettingsTabId id);
SettingsDialogTab *tab(SettingsTabId id);
void filterElements(const QString &query); void filterElements(const QString &query);
void onOkClicked(); void onOkClicked();