Deprecate dead code

This commit is contained in:
Bruce Hill 2024-09-18 00:43:50 -04:00
parent 7e0b1a3214
commit 6f5de04b14
2 changed files with 0 additions and 21 deletions

20
parse.c
View File

@ -2411,24 +2411,4 @@ type_ast_t *parse_type_str(const char *str) {
return ast;
}
ast_t *parse_expression_str(const char *str) {
file_t *file = spoof_file("<expression>", str);
parse_ctx_t ctx = {
.file=file,
.on_err=NULL,
.next_lambda_id=0,
};
const char *pos = file->text;
whitespace(&pos);
ast_t *ast = parse_extended_expr(&ctx, pos);
if (!ast) return ast;
pos = ast->end;
whitespace(&pos);
if (strlen(pos) > 0) {
parser_err(&ctx, pos, pos + strlen(pos), "I couldn't parse this part of the expression");
}
return ast;
}
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0

View File

@ -7,7 +7,6 @@
#include "ast.h"
type_ast_t *parse_type_str(const char *str);
ast_t *parse_expression_str(const char *str);
ast_t *parse_file(const char *path, jmp_buf *on_err);
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0