From 56325e2ba62af99ff47c38679951115cbf5c6ba0 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 13 Apr 2022 20:12:37 -0400 Subject: [PATCH] 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 --- gdbsupport/gdb_tilde_expand.cc | 9 --------- gdbsupport/gdb_tilde_expand.h | 4 ---- 2 files changed, 13 deletions(-) diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc index e3f9308a14f..177d296a14f 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 -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 c47cd6a214f..06b96517697 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. */ -extern gdb::unique_xmalloc_ptr gdb_tilde_expand_up (const char *dir); - #endif /* COMMON_GDB_TILDE_EXPAND_H */ -- 2.30.2