]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove superfluous return type from SkipToToken
authorCloudwalk <cloudwalk009@gmail.com>
Tue, 11 May 2021 02:02:59 +0000 (22:02 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Tue, 11 May 2021 02:02:59 +0000 (22:02 -0400)
parser.c

index 0b86be70ba0c3ba92bf145f50ce89dd3166b8a43..c9e5e84f335ce82558d7a96e4495280a24d1f7c4 100644 (file)
--- 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.