Commit 3aa6cff4 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

wrc: Remove variable type which is not really used from rsrcid_to_token.

parent 34db2df2
...@@ -2865,7 +2865,6 @@ clean: ...@@ -2865,7 +2865,6 @@ clean:
static int rsrcid_to_token(int lookahead) static int rsrcid_to_token(int lookahead)
{ {
int token; int token;
const char *type = "?";
/* Get a token if we don't have one yet */ /* Get a token if we don't have one yet */
if(lookahead == YYEMPTY) if(lookahead == YYEMPTY)
...@@ -2886,64 +2885,49 @@ static int rsrcid_to_token(int lookahead) ...@@ -2886,64 +2885,49 @@ static int rsrcid_to_token(int lookahead)
switch(yylval.num) switch(yylval.num)
{ {
case WRC_RT_CURSOR: case WRC_RT_CURSOR:
type = "CURSOR";
token = tCURSOR; token = tCURSOR;
break; break;
case WRC_RT_ICON: case WRC_RT_ICON:
type = "ICON";
token = tICON; token = tICON;
break; break;
case WRC_RT_BITMAP: case WRC_RT_BITMAP:
type = "BITMAP";
token = tBITMAP; token = tBITMAP;
break; break;
case WRC_RT_FONT: case WRC_RT_FONT:
type = "FONT";
token = tFONT; token = tFONT;
break; break;
case WRC_RT_FONTDIR: case WRC_RT_FONTDIR:
type = "FONTDIR";
token = tFONTDIR; token = tFONTDIR;
break; break;
case WRC_RT_RCDATA: case WRC_RT_RCDATA:
type = "RCDATA";
token = tRCDATA; token = tRCDATA;
break; break;
case WRC_RT_MESSAGETABLE: case WRC_RT_MESSAGETABLE:
type = "MESSAGETABLE";
token = tMESSAGETABLE; token = tMESSAGETABLE;
break; break;
case WRC_RT_DLGINIT: case WRC_RT_DLGINIT:
type = "DLGINIT";
token = tDLGINIT; token = tDLGINIT;
break; break;
case WRC_RT_ACCELERATOR: case WRC_RT_ACCELERATOR:
type = "ACCELERATOR";
token = tACCELERATORS; token = tACCELERATORS;
break; break;
case WRC_RT_MENU: case WRC_RT_MENU:
type = "MENU";
token = tMENU; token = tMENU;
break; break;
case WRC_RT_DIALOG: case WRC_RT_DIALOG:
type = "DIALOG";
token = tDIALOG; token = tDIALOG;
break; break;
case WRC_RT_VERSION: case WRC_RT_VERSION:
type = "VERSION";
token = tVERSIONINFO; token = tVERSIONINFO;
break; break;
case WRC_RT_TOOLBAR: case WRC_RT_TOOLBAR:
type = "TOOLBAR";
token = tTOOLBAR; token = tTOOLBAR;
break; break;
case WRC_RT_HTML: case WRC_RT_HTML:
type = "HTML";
token = tHTML; token = tHTML;
break; break;
case WRC_RT_STRING: case WRC_RT_STRING:
type = "STRINGTABLE";
break; break;
case WRC_RT_ANICURSOR: case WRC_RT_ANICURSOR:
......
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