1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Wayland: Remove check for error that cannot happen

Famous last words.
This commit is contained in:
Camilla Löwy 2022-03-24 21:24:34 +01:00
parent 8d216054ad
commit 967282c2e6

View File

@ -1600,14 +1600,6 @@ static void dataSourceHandleSend(void* userData,
} }
char* string = _glfw.wl.clipboardString; 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); size_t length = strlen(string);
while (length > 0) while (length > 0)