Drop Workspace::{oldDisplayWidth,oldDisplayHeight}

They're unused.
This commit is contained in:
Vlad Zahorodnii 2023-02-07 21:47:49 +02:00
parent 77bf51c3b5
commit 452bb20741
2 changed files with 0 additions and 15 deletions

View file

@ -2427,9 +2427,7 @@ void Workspace::desktopResized()
void Workspace::saveOldScreenSizes()
{
olddisplaysize = m_geometry.size();
m_oldScreenGeometries.clear();
for (const Output *output : std::as_const(m_outputs)) {
m_oldScreenGeometries.insert(output, output->geometry());
}
@ -2715,16 +2713,6 @@ QHash<const Output *, QRect> Workspace::previousScreenSizes() const
return m_oldScreenGeometries;
}
int Workspace::oldDisplayWidth() const
{
return olddisplaysize.width();
}
int Workspace::oldDisplayHeight() const
{
return olddisplaysize.height();
}
Output *Workspace::xineramaIndexToOutput(int index) const
{
xcb_connection_t *connection = kwinApp()->x11Connection();

View file

@ -306,8 +306,6 @@ public:
bool inUpdateClientArea() const;
StrutRects previousRestrictedMoveArea(const VirtualDesktop *desktop, StrutAreas areas = StrutAreaAll) const;
QHash<const Output *, QRect> previousScreenSizes() const;
int oldDisplayWidth() const;
int oldDisplayHeight() const;
/**
* Returns the list of windows sorted in stacking order, with topmost window
@ -743,7 +741,6 @@ private:
QRect m_geometry;
QHash<const Output *, QRect> m_oldScreenGeometries;
QSize olddisplaysize; // previous sizes od displayWidth()/displayHeight()
QHash<const VirtualDesktop *, StrutRects> m_oldRestrictedAreas;
bool m_inUpdateClientArea = false;