]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
Remove parser_compile_string_len, and make parser_compiler_string take an additional...
[xonotic/gmqcc.git] / parser.c
index 16d783a9c9d2545d00b8494fddb940d47bbfccad..46f4291ce24a20b3114f5374446c462ee97e4876 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4724,7 +4724,7 @@ bool parser_compile_file(const char *filename)
     return parser_compile();
 }
 
-bool parser_compile_string_len(const char *name, const char *str, size_t len)
+bool parser_compile_string(const char *name, const char *str, size_t len)
 {
     parser->lex = lex_open_string(str, len, name);
     if (!parser->lex) {
@@ -4734,16 +4734,6 @@ bool parser_compile_string_len(const char *name, const char *str, size_t len)
     return parser_compile();
 }
 
-bool parser_compile_string(const char *name, const char *str)
-{
-    parser->lex = lex_open_string(str, strlen(str), name);
-    if (!parser->lex) {
-        con_err("failed to create lexer for string \"%s\"\n", name);
-        return false;
-    }
-    return parser_compile();
-}
-
 void parser_cleanup()
 {
     size_t i;