From d525e063ba4e478cc4afac4cdf60f7acd989dbf2 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 10 May 2021 23:04:59 +0100 Subject: buf: remove internal `git_buf_text` namespace The `git_buf_text` namespace is unnecessary and strange. Remove it, just keep the functions prefixed with `git_buf`. --- src/config_parse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/config_parse.c') diff --git a/src/config_parse.c b/src/config_parse.c index 7da92d3e7..ea32c36ba 100644 --- a/src/config_parse.c +++ b/src/config_parse.c @@ -7,8 +7,6 @@ #include "config_parse.h" -#include "buf_text.h" - #include const char *git_config_escapes = "ntb\"\\"; @@ -231,7 +229,7 @@ static int skip_bom(git_parse_ctx *parser) { git_buf buf = GIT_BUF_INIT_CONST(parser->content, parser->content_len); git_bom_t bom; - int bom_offset = git_buf_text_detect_bom(&bom, &buf); + int bom_offset = git_buf_detect_bom(&bom, &buf); if (bom == GIT_BOM_UTF8) git_parse_advance_chars(parser, bom_offset); -- cgit v1.2.1