core: remove get_first_converted_string_c() in load-git.cpp

No more users of C-strings.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-08 22:45:01 +02:00 committed by bstoeger
parent 7452aa22c2
commit 0c7c96402c

View file

@ -207,15 +207,6 @@ static std::string get_first_converted_string(struct git_parser_state *state)
return std::move(state->converted_strings.front());
}
// This is a dummy function that converts the first
// converted string to a newly allocated C-string.
// Will be removed when the core data structures are
// converted to std::string.
static char *get_first_converted_string_c(struct git_parser_state *state)
{
return strdup(get_first_converted_string(state).c_str());
}
static void parse_dive_location(char *, struct git_parser_state *state)
{
std::string name = get_first_converted_string(state);