Remove not implemented add/delete desktop

It is unlikely that anyone will implement it and it is not compatible
to EWMH anyway. So better remove it.
icc-effect-5.14.5
Martin Gräßlin 2011-03-13 13:58:00 +01:00
parent c4381dc1f9
commit 9199619969
5 changed files with 0 additions and 45 deletions

View File

@ -171,17 +171,4 @@ int Workspace::desktopToLeft(int id, bool wrap) const
}
}
int Workspace::addDesktop(QPoint coords)
{
// TODO
Q_UNUSED(coords);
return 0;
}
void Workspace::deleteDesktop(int id)
{
// TODO
Q_UNUSED(id);
}
} // namespace

View File

@ -682,16 +682,6 @@ bool EffectsHandlerImpl::isDesktopLayoutDynamic() const
return Workspace::self()->isDesktopLayoutDynamic();
}
int EffectsHandlerImpl::addDesktop(QPoint coords)
{
return Workspace::self()->addDesktop(coords);
}
void EffectsHandlerImpl::deleteDesktop(int id)
{
Workspace::self()->deleteDesktop(id);
}
QString EffectsHandlerImpl::desktopName(int desktop) const
{
return Workspace::self()->desktopName(desktop);

View File

@ -84,8 +84,6 @@ public:
virtual int desktopBelow(int desktop = 0, bool wrap = true) const;
virtual int desktopToLeft(int desktop = 0, bool wrap = true) const;
virtual bool isDesktopLayoutDynamic() const;
virtual int addDesktop(QPoint coords);
virtual void deleteDesktop(int id);
virtual QString desktopName(int desktop) const;
virtual bool optionRollOverDesktops() const;

View File

@ -667,16 +667,6 @@ public:
* @returns Whether or not the desktop layout is allowed to be modified by the user.
*/
virtual bool isDesktopLayoutDynamic() const = 0;
/**
* Create new desktop at the point @a coords
* @returns The ID of the created desktop
*/
virtual int addDesktop(QPoint coords) = 0;
/**
* Deletes the desktop with the ID @a id. All desktops with an ID greater than the one that
* was deleted will have their IDs' decremented.
*/
virtual void deleteDesktop(int id) = 0;
virtual QString desktopName(int desktop) const = 0;
virtual bool optionRollOverDesktops() const = 0;

View File

@ -318,16 +318,6 @@ public:
* Sets whether or not this layout can be modified by the user.
*/
void setDesktopLayoutDynamicity(bool dynamicity);
/**
* Create new desktop at the point @a coords
* @returns The ID of the created desktop
*/
int addDesktop(QPoint coords);
/**
* Deletes the desktop with the ID @a id. All desktops with an ID greater than the one that
* was deleted will have their IDs' decremented.
*/
void deleteDesktop(int id);
private:
int desktopCount_;