mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Wayland: Remove check for error that cannot happen
Famous last words.
(cherry picked from commit 967282c2e6
)
This commit is contained in:
parent
9e852ec39e
commit
c0c0d172a1
@ -1734,14 +1734,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)
|
||||
|
Loading…
Reference in New Issue
Block a user