Browse Source

Wayland: Remove unreachable code

This platform function is only called if the cursor is enabled.
Camilla Löwy 3 years ago
parent
commit
3a5c726d1b
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/wl_window.c

+ 0 - 7
src/wl_window.c

@@ -2252,13 +2252,6 @@ void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos)
 
 void _glfwSetCursorPosWayland(_GLFWwindow* window, double x, double y)
 {
-    if (window->wl.lockedPointer)
-    {
-        zwp_locked_pointer_v1_set_cursor_position_hint(
-            window->wl.lockedPointer,
-            wl_fixed_from_double(x),
-            wl_fixed_from_double(y));
-    }
 }
 
 void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode)