aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
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
parent5f2491c300636a2091a2ca3db7773d52d04bf566 (diff)
downloadfsf-binutils-gdb-56325e2ba62af99ff47c38679951115cbf5c6ba0.zip
fsf-binutils-gdb-56325e2ba62af99ff47c38679951115cbf5c6ba0.tar.gz
fsf-binutils-gdb-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')
-rw-r--r--gdbsupport/gdb_tilde_expand.cc9
-rw-r--r--gdbsupport/gdb_tilde_expand.h4
2 files changed, 0 insertions, 13 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 ());
-}
diff --git a/gdbsupport/gdb_tilde_expand.h b/gdbsupport/gdb_tilde_expand.h
index c47cd6a..06b9651 100644
--- a/gdbsupport/gdb_tilde_expand.h
+++ b/gdbsupport/gdb_tilde_expand.h
@@ -23,8 +23,4 @@
/* Perform tilde expansion on DIR, and return the full path. */
extern std::string gdb_tilde_expand (const char *dir);
-/* Same as GDB_TILDE_EXPAND, but return the full path as a
- gdb::unique_xmalloc_ptr<char>. */
-extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir);
-
#endif /* COMMON_GDB_TILDE_EXPAND_H */