XKB: Text: Use keysym <-> string conversion from keysym.c
[profile/ivi/libxkbcommon.git] / src / text.c
index 9da18b6..3f8e554 100644 (file)
@@ -380,17 +380,7 @@ XkbcActionTypeText(unsigned type)
 char *
 XkbcKeysymText(KeySym sym)
 {
-    char *buf;
-
-    if (sym == NoSymbol)
-        return "NoSymbol";
-
-    if ((buf = XkbcKeysymToString(sym)))
-        return buf;
-
-    buf = tbGetBuffer(32);
-    snprintf(buf, 32, "0x%lx", (long)sym);
-    return buf;
+    return XkbcKeysymToString(sym);
 }
 
 char *