From: Cloudwalk Date: Tue, 11 May 2021 02:02:59 +0000 (-0400) Subject: Remove superfluous return type from SkipToToken X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c7ee9cd8a23aea351f0350389367c541281f0e4d;p=xonotic%2Fdarkplaces.git Remove superfluous return type from SkipToToken --- 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.