From c7ee9cd8a23aea351f0350389367c541281f0e4d Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Mon, 10 May 2021 22:02:59 -0400 Subject: [PATCH] Remove superfluous return type from SkipToToken --- parser.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/parser.c b/parser.c index 0b86be70..c9e5e84f 100644 --- a/parser.c +++ b/parser.c @@ -121,18 +121,13 @@ static inline qbool Parse_Skip_Comments(struct qparser_state_s *state) } // Skip all whitespace. -static inline qbool Parse_SkipToToken(struct qparser_state_s *state) +static inline void Parse_SkipToToken(struct qparser_state_s *state) { - qbool ret = false; - /* * Repeat this until we run out of whitespace, newlines, and comments. * state->pos should be left on non-whitespace when this returns. */ - while(Parse_Skip_Comments(state) || Parse_Skip_Whitespace(state) || Parse_Newline(state)) - ret = true; - - return ret; + while(Parse_Skip_Comments(state) || Parse_Skip_Whitespace(state) || Parse_Newline(state)); } // Skip to the next token. Advance the pointer at least 1 if we're not sitting on whitespace. -- 2.39.2