]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove some unnecessary code from print_gdb_hints
authorAndrew Burgess <aburgess@redhat.com>
Thu, 4 Dec 2025 15:18:02 +0000 (15:18 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 4 Dec 2025 19:28:20 +0000 (19:28 +0000)
I noticed some code in print_gdb_hints that is unused.  I rolled a
patch, but while I was doing that commit:

  commit 06e470d8fc0ae0e83fe0977fdf8c011998980891
  Date:   Sat Nov 29 15:48:55 2025 +0100

      gdb: handle unlimited screen width case in print_gdb_hints

was merged that deleted some of the code I'd spotted.  All that's left
is a 'return' that can be removed, there's nothing after the 'if'
block, the function just returns.

There should be no user visible changes after this commit.

Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
gdb/top.c

index 52ec66b060772b7b68c4055fb747645d3fd83ad0..f3cac5fd55a41dcaf8e6dbd66763e1b6ccd43899 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1446,8 +1446,6 @@ print_gdb_hints (struct ui_file *stream)
     {
       for (string_file &msg : styled_msg)
        gdb_printf (stream, "%s\n", msg.c_str ());
-
-      return;
     }
   else
     {