Browse Source

Wayland: Remove check for error that cannot happen

Famous last words.
Camilla Löwy 3 years ago
parent
commit
967282c2e6
1 changed files with 0 additions and 8 deletions
  1. 0 8
      src/wl_window.c

+ 0 - 8
src/wl_window.c

@@ -1600,14 +1600,6 @@ static void dataSourceHandleSend(void* userData,
     }
 
     char* string = _glfw.wl.clipboardString;
-    if (!string)
-    {
-        _glfwInputError(GLFW_PLATFORM_ERROR,
-                        "Wayland: Copy requested from an invalid string");
-        close(fd);
-        return;
-    }
-
     size_t length = strlen(string);
 
     while (length > 0)