mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
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:
parent
7452aa22c2
commit
0c7c96402c
1 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue