mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 10:20:37 +01:00
xkb: drop never used XkmProbe()
This function was (accidentally ?) added back in 2008, but never used. Fixes:68bd7ac193Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1472> (cherry picked from commitfdea36708c)
This commit is contained in:
parent
829b10c245
commit
346a4d0277
2 changed files with 0 additions and 20 deletions
|
|
@ -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…
Add table
Reference in a new issue