d3dxof: Get rid of is_template_available.

This commit is contained in:
Christian Costa 2013-04-28 22:46:17 +02:00 committed by Alexandre Julliard
parent 1b8b629445
commit 6668a64145

View file

@ -884,11 +884,6 @@ static WORD check_TOKEN(parse_buffer * buf)
return buf->current_token;
}
static BOOL is_template_available(parse_buffer * buf)
{
return check_TOKEN(buf) == TOKEN_TEMPLATE;
}
static inline BOOL is_primitive_type(WORD token)
{
BOOL ret;
@ -1133,7 +1128,7 @@ static BOOL parse_template(parse_buffer * buf)
BOOL parse_templates(parse_buffer * buf)
{
while (buf->rem_bytes && is_template_available(buf))
while (buf->rem_bytes && (check_TOKEN(buf) == TOKEN_TEMPLATE))
{
if (!parse_template(buf))
{