From 8a49d1e8ccfc8d1f65affad40b129f0f8aa7ba2d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 17 Jun 2023 01:00:53 +0300 Subject: [PATCH] kwin: replace KWin::X11Cursor::createCursor() with its body Signed-off-by: Ivailo Monev --- kwin/cursor.cpp | 5 ----- kwin/cursor.h | 1 - 2 files changed, 6 deletions(-) diff --git a/kwin/cursor.cpp b/kwin/cursor.cpp index a1287a5f..ac59c429 100644 --- a/kwin/cursor.cpp +++ b/kwin/cursor.cpp @@ -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; diff --git a/kwin/cursor.h b/kwin/cursor.h index 26add669..0ca5b97e 100644 --- a/kwin/cursor.h +++ b/kwin/cursor.h @@ -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 m_cursors; xcb_timestamp_t m_timeStamp;