kwin: replace KWin::X11Cursor::createCursor() with its body

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-17 01:00:53 +03:00
parent 885dec0ded
commit 8a49d1e8cc
2 changed files with 0 additions and 6 deletions

View file

@ -245,11 +245,6 @@ xcb_cursor_t X11Cursor::getX11Cursor(Qt::CursorShape shape)
if (it != m_cursors.constEnd()) {
return it.value();
}
return createCursor(shape);
}
xcb_cursor_t X11Cursor::createCursor(Qt::CursorShape shape)
{
const QByteArray name = cursorName(shape);
if (name.isEmpty()) {
return XCB_CURSOR_NONE;

View file

@ -199,7 +199,6 @@ private slots:
void mousePolled();
private:
X11Cursor(QObject *parent);
xcb_cursor_t createCursor(Qt::CursorShape shape);
QByteArray cursorName(Qt::CursorShape shape) const;
QHash<Qt::CursorShape, xcb_cursor_t > m_cursors;
xcb_timestamp_t m_timeStamp;