1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

remove deprecated noOfDocks of corona

This commit is contained in:
Michail Vourlakos 2018-01-31 20:28:42 +02:00
parent f7f7d3da6c
commit d501f05ade
3 changed files with 1 additions and 15 deletions

View File

@ -655,17 +655,6 @@ void DockCorona::aboutApplication()
aboutDialog->show();
}
int DockCorona::noOfDocks()
{
QHash<const Plasma::Containment *, DockView *> *views = m_layoutManager->currentDockViews();
if (views) {
return views->count();
} else {
return 0;
}
}
QList<Plasma::Types::Location> DockCorona::freeEdges(QScreen *screen) const
{
using Plasma::Types;

View File

@ -134,7 +134,6 @@ private:
bool appletExists(uint containmentId, uint appletId) const;
bool containmentExists(uint id) const;
int noOfDocks();
int primaryScreenId() const;
QStringList containmentsIds();

View File

@ -1082,9 +1082,7 @@ int DockView::totalDocksCount() const
int DockView::docksWithTasks()
{
auto dockCorona = qobject_cast<DockCorona *>(corona());
if (!dockCorona || !m_managedLayout)
if (!m_managedLayout)
return 0;
return m_managedLayout->noDocksWithTasks();