Remove dead code in Platform

Software cursor logic has been moved to Scene.
This commit is contained in:
Vlad Zahorodnii 2022-02-16 15:27:40 +02:00
parent 6ab7119d89
commit f59a4d6090
2 changed files with 0 additions and 18 deletions

View file

@ -209,19 +209,6 @@ AbstractOutput *Platform::outputAt(const QPoint &pos) const
return bestOutput;
}
void Platform::triggerCursorRepaint()
{
if (Compositor::compositing()) {
Compositor::self()->scene()->addRepaint(m_cursor.lastRenderedGeometry);
Compositor::self()->scene()->addRepaint(Cursors::self()->currentCursor()->geometry());
}
}
void Platform::cursorRendered(const QRect &geometry)
{
m_cursor.lastRenderedGeometry = geometry;
}
void Platform::keyboardKeyPressed(quint32 key, quint32 time)
{
if (!input()) {

View file

@ -391,7 +391,6 @@ public Q_SLOTS:
void processPinchGestureEnd(quint32 time);
void processPinchGestureCancelled(quint32 time);
void cursorRendered(const QRect &geometry);
virtual void sceneInitialized() {};
Q_SIGNALS:
@ -448,10 +447,6 @@ protected:
}
private:
void triggerCursorRepaint();
struct {
QRect lastRenderedGeometry;
} m_cursor;
bool m_ready = false;
QSize m_initialWindowSize;
QByteArray m_deviceIdentifier;