Drop ClearablePoint

It's unused.
This commit is contained in:
Vlad Zahorodnii 2022-01-10 22:26:04 +02:00
parent 677f5fcb6e
commit 2979a850fa

View file

@ -170,33 +170,6 @@ Qt::MouseButton KWIN_EXPORT x11ToQtMouseButton(int button);
Qt::MouseButtons KWIN_EXPORT x11ToQtMouseButtons(int state);
Qt::KeyboardModifiers KWIN_EXPORT x11ToQtKeyboardModifiers(int state);
/**
* Separate the concept of an unet QPoint and 0,0
*/
class ClearablePoint
{
public:
inline bool isValid() const {
return m_valid;
}
inline void clear(){
m_valid = false;
}
inline void setPoint(const QPoint &point) {
m_point = point; m_valid = true;
}
inline QPoint point() const {
return m_point;
}
private:
QPoint m_point;
bool m_valid = false;
};
/**
* QProcess subclass which unblocks SIGUSR in the child process.
*/