parser: remove an unneeded check

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-11-13 23:37:47 +02:00
parent 59d2a71383
commit f9b95c06c1
1 changed files with 2 additions and 7 deletions

View File

@ -258,13 +258,8 @@ XkbCompositeType: XKB_KEYMAP { $$ = FILE_TYPE_KEYMAP; }
;
XkbMapConfigList : XkbMapConfigList XkbMapConfig
{
if (!$2)
$$ = $1;
else
$$ = (XkbFile *) AppendStmt((ParseCommon *) $1,
(ParseCommon *) $2);
}
{ $$ = (XkbFile *) AppendStmt((ParseCommon *) $1,
(ParseCommon *) $2); }
| XkbMapConfig
{ $$ = $1; }
;