Remove a call to tui_locator_win_info_ptr
authorTom Tromey <tom@tromey.com>
Sun, 1 Sep 2019 14:10:18 +0000 (08:10 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Sep 2019 19:49:09 +0000 (13:49 -0600)
Commit e594a5d1 ("Turn two locator functions into methods") turned
set_locator_fullname into a method on tui_locator_window.  I missed it
at the time, but this change allows for the removal of a call to
tui_locator_win_info_ptr.

gdb/ChangeLog
2019-09-20  Tom Tromey  <tom@tromey.com>

* tui/tui-stack.c (tui_locator_window::set_locator_fullname):
Don't call tui_locator_win_info_ptr.

gdb/ChangeLog
gdb/tui/tui-stack.c

index 35584db07fd7d1194731523b9f02d4801133a891..401c74242e1479360211251c216eb061f0578542 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
+       Don't call tui_locator_win_info_ptr.
+
 2019-09-20  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-win.c (tui_resize_all): Don't call refresh.
index 6bfbb0e5ea6cd64dab75a40f4f904cf76803edb7..830187995be0d6143089b022325efb68dd89c815 100644 (file)
@@ -250,10 +250,8 @@ tui_locator_window::rerender ()
 void
 tui_locator_window::set_locator_fullname (const char *fullname)
 {
-  struct tui_locator_window *locator = tui_locator_win_info_ptr ();
-
-  locator->full_name[0] = 0;
-  strcat_to_buf (locator->full_name, MAX_LOCATOR_ELEMENT_LEN, fullname);
+  full_name[0] = 0;
+  strcat_to_buf (full_name, MAX_LOCATOR_ELEMENT_LEN, fullname);
   rerender ();
 }