Wayland: Remove last traces of legacy Unicode path

The legacy keysym-to-Unicode path is only used on X11 since
21fea01161, but the file was still
included in Wayland-only builds.
This commit is contained in:
Camilla Löwy
2026-02-16 17:36:57 +01:00
parent aa5047709d
commit 1839271de4
5 changed files with 9 additions and 38 deletions
+3 -3
View File
@@ -27,7 +27,7 @@
#include "internal.h"
#if defined(_GLFW_X11) || defined(_GLFW_WAYLAND)
#if defined(_GLFW_X11)
/*
* Marcus: This code was originally written by Markus G. Kuhn.
@@ -906,7 +906,7 @@ static const struct codepair {
// Convert XKB KeySym to Unicode
//
uint32_t _glfwKeySym2Unicode(unsigned int keysym)
uint32_t _glfwKeySym2UnicodeX11(unsigned int keysym)
{
int min = 0;
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
@@ -939,5 +939,5 @@ uint32_t _glfwKeySym2Unicode(unsigned int keysym)
return GLFW_INVALID_CODEPOINT;
}
#endif // _GLFW_WAYLAND or _GLFW_X11
#endif // _GLFW_X11