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 {
SettingsDialog *SettingsDialog::instance_ = nullptr;
SettingsDialog::SettingsDialog()
: BaseWindow(BaseWindow::DisableCustomScaling)
{
@ -138,11 +136,6 @@ void SettingsDialog::filterElements(const QString &text)
}
}
SettingsDialog *SettingsDialog::instance()
{
return SettingsDialog::instance_;
}
void SettingsDialog::addTabs()
{
this->ui_.tabContainer->setMargin(0);

View file

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