xkb: drop never used XkmProbe()
This function was (accidentally ?) added back in 2008, but never used.
Fixes: 68bd7ac193
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1472>
This commit is contained in:
parent
e1f16fb1ac
commit
fdea36708c
|
@ -263,9 +263,6 @@ extern _X_EXPORT Bool XkbWriteXKBKeymapForNames(FILE * /* file */ ,
|
|||
|
||||
/***====================================================================***/
|
||||
|
||||
extern _X_EXPORT Bool XkmProbe(FILE * /* file */
|
||||
);
|
||||
|
||||
extern _X_EXPORT unsigned XkmReadFile(FILE * /* file */ ,
|
||||
unsigned /* need */ ,
|
||||
unsigned /* want */ ,
|
||||
|
|
|
@ -1168,23 +1168,6 @@ ReadXkmGeometry(FILE * file, XkbDescPtr xkb)
|
|||
return nRead;
|
||||
}
|
||||
|
||||
Bool
|
||||
XkmProbe(FILE * file)
|
||||
{
|
||||
unsigned hdr, tmp;
|
||||
int nRead = 0;
|
||||
|
||||
hdr = (('x' << 24) | ('k' << 16) | ('m' << 8) | XkmFileVersion);
|
||||
tmp = XkmGetCARD32(file, &nRead);
|
||||
if (tmp != hdr) {
|
||||
if ((tmp & (~0xff)) == (hdr & (~0xff))) {
|
||||
_XkbLibError(_XkbErrBadFileVersion, "XkmProbe", tmp & 0xff);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Bool
|
||||
XkmReadTOC(FILE * file, xkmFileInfo * file_info, int max_toc,
|
||||
xkmSectionInfo * toc)
|
||||
|
|
Loading…
Reference in New Issue