aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/gdb_tilde_expand.cc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-04-13 20:12:37 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-18 15:48:03 -0400
commit56325e2ba62af99ff47c38679951115cbf5c6ba0 (patch)
treed2cbc7b9fa2e8aca76bbc09442c7e59fd3bafc6a /gdbsupport/gdb_tilde_expand.cc
parent5f2491c300636a2091a2ca3db7773d52d04bf566 (diff)
downloadbinutils-56325e2ba62af99ff47c38679951115cbf5c6ba0.zip
binutils-56325e2ba62af99ff47c38679951115cbf5c6ba0.tar.gz
binutils-56325e2ba62af99ff47c38679951115cbf5c6ba0.tar.bz2
gdb: use gdb_tilde_expand instead of gdb_tilde_expand_up in source_script_with_search
Since this is the latest use of gdb_tilde_expand_up, remove it. Change-Id: I964c812ce55fe087876abf91e7a3577ad79c0425
Diffstat (limited to 'gdbsupport/gdb_tilde_expand.cc')
-rw-r--r--gdbsupport/gdb_tilde_expand.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc
index e3f9308..177d296 100644
--- a/gdbsupport/gdb_tilde_expand.cc
+++ b/gdbsupport/gdb_tilde_expand.cc
@@ -102,12 +102,3 @@ gdb_tilde_expand (const char *dir)
gdb_assert (glob.pathc () == 1);
return std::string (glob.pathv ()[0]) + remainder;
}
-
-/* See gdbsupport/gdb_tilde_expand.h. */
-
-gdb::unique_xmalloc_ptr<char>
-gdb_tilde_expand_up (const char *dir)
-{
- const std::string expanded = gdb_tilde_expand (dir);
- return make_unique_xstrdup (expanded.c_str ());
-}