Remove some unused functions

This commit is contained in:
Nicolas Werner 2022-01-25 11:09:54 +01:00
parent 4a80fdc951
commit 573624a490
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 2 additions and 53 deletions

View file

@ -357,23 +357,6 @@ MainWindow::saveCurrentWindowSize()
settings->setValue(QStringLiteral("window/height"), current.height());
}
void
MainWindow::removeOverlayProgressBar()
{
QTimer *timer = new QTimer(this);
timer->setSingleShot(true);
connect(timer, &QTimer::timeout, this, [this, timer]() { timer->deleteLater(); });
// FIXME: Snackbar doesn't work if it's initialized in the constructor.
// QTimer::singleShot(0, this, [this]() {
// snackBar_ = new SnackBar(this);
// connect(chat_page_, &ChatPage::showNotification, snackBar_, &SnackBar::showMessage);
//});
timer->start(50);
}
void
MainWindow::showChatPage()
{
@ -388,8 +371,6 @@ MainWindow::showChatPage()
userSettings_.data()->setDeviceId(device_id);
userSettings_.data()->setHomeserver(homeserver);
showOverlayProgressBar();
chat_page_->bootstrap(userid, homeserver, token);
connect(cache::client(), &Cache::databaseReady, this, &MainWindow::secretsChanged);
connect(cache::client(), &Cache::secretChanged, this, &MainWindow::secretsChanged);
@ -446,10 +427,6 @@ MainWindow::hasActiveUser()
settings->contains(prefix + "auth/user_id");
}
void
MainWindow::showOverlayProgressBar()
{}
void
MainWindow::openCreateRoomDialog(
std::function<void(const mtx::requests::CreateRoom &request)> callback)
@ -463,14 +440,6 @@ MainWindow::openCreateRoomDialog(
showDialog(dialog);
}
void
MainWindow::showTransparentOverlayModal(QWidget *, QFlags<Qt::AlignmentFlag>)
{}
void
MainWindow::showSolidOverlayModal(QWidget *, QFlags<Qt::AlignmentFlag>)
{}
bool
MainWindow::hasActiveDialogs() const
{
@ -484,10 +453,6 @@ MainWindow::pageSupportsTray() const
//! !register_page_->isVisible();
}
void
MainWindow::hideOverlay()
{}
inline void
MainWindow::showDialog(QWidget *dialog)
{
@ -496,12 +461,6 @@ MainWindow::showDialog(QWidget *dialog)
dialog->show();
}
void
MainWindow::showWelcomePage()
{
removeOverlayProgressBar();
}
void
MainWindow::showRegisterPage()
{}