From 02601231fdd91a7bd4837ce202906ea2ce661489 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 4 Apr 2023 12:50:03 -0600 Subject: Simplify auto_load_expand_dir_vars and remove substitute_path_component This simplifies auto_load_expand_dir_vars to first split the string, then do any needed substitutions. This was suggested by Simon, and is much simpler than the current approach. Then this patch also removes substitute_path_component, as it is no longer called. This is nice because it helps with the long term goal of removing utils.h. Regression tested on x86-64 Fedora 36. --- gdb/utils.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/utils.h') diff --git a/gdb/utils.h b/gdb/utils.h index 2d831ba..00b123e 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -136,9 +136,6 @@ private: extern int gdb_filename_fnmatch (const char *pattern, const char *string, int flags); -extern void substitute_path_component (char **stringp, const char *from, - const char *to); - std::string ldirname (const char *filename); extern int count_path_elements (const char *path); -- cgit v1.1