2
0
Эх сурвалжийг харах

Wayland: Remove check for error that cannot happen

Famous last words.
Camilla Löwy 3 жил өмнө
parent
commit
967282c2e6
1 өөрчлөгдсөн 0 нэмэгдсэн , 8 устгасан
  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)