aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xkb/xkbUtils.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/xkb/xkbUtils.c')
-rw-r--r--nx-X11/programs/Xserver/xkb/xkbUtils.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/nx-X11/programs/Xserver/xkb/xkbUtils.c b/nx-X11/programs/Xserver/xkb/xkbUtils.c
index 4adcc878d..fa252b10b 100644
--- a/nx-X11/programs/Xserver/xkb/xkbUtils.c
+++ b/nx-X11/programs/Xserver/xkb/xkbUtils.c
@@ -859,26 +859,6 @@ XkbDescPtr xkb= xkbi->desc;
}
if ((xkb->geom!=NULL)&&(xkb->geom->name==name))
return xkb->geom;
- else if ((name==xkb->names->geometry)&&(xkb->geom==NULL)) {
- FILE *file= XkbDDXOpenConfigFile(XkbInitialMap,NULL,0);
- if (file!=NULL) {
- XkbFileInfo xkbFInfo;
- xkmFileInfo finfo;
- xkmSectionInfo toc[MAX_TOC],*entry;
- bzero(&xkbFInfo,sizeof(xkbFInfo));
- xkbFInfo.xkb= xkb;
- if (XkmReadTOC(file,&finfo,MAX_TOC,toc)) {
- entry= XkmFindTOCEntry(&finfo,toc,XkmGeometryIndex);
- if (entry!=NULL)
- XkmReadFileSection(file,entry,&xkbFInfo,NULL);
- }
- fclose(file);
- if (xkb->geom) {
- *shouldFree= 0;
- return xkb->geom;
- }
- }
- }
*shouldFree= 1;
return NULL;
}