Commit 3afd7282 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winex11.drv: Removed dead code (Coverity).

parent 886b15e7
......@@ -857,6 +857,7 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
const char *any = "*";
char h_string[64], resx_string[64], resy_string[64];
LFD aLFD;
const fontEncodingTemplate* boba = &fETTable[0];
/* Get the worst case over with first */
......@@ -1001,16 +1002,11 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
/* encoding */
if (uRelax <= 5)
{
const fontEncodingTemplate* boba = &fETTable[0];
for(i = fo->fi->fi_encoding >> 8; i; i--) boba = boba->next;
aLFD.charset_registry = boba->prefix ? boba->prefix : any;
i = fo->fi->fi_encoding & 255;
switch( i )
{
switch( i ) {
default:
aLFD.charset_encoding = boba->sufch[i].psuffix;
break;
......@@ -1023,12 +1019,6 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
aLFD.charset_encoding = NULL;
break;
}
}
else
{
aLFD.charset_registry = any;
aLFD.charset_encoding = any;
}
LFD_UnParse(lpLFD, MAX_LFD_LENGTH, &aLFD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment