Simplify TUI C-x 2 binding
[deliverable/binutils-gdb.git] / gdb / tui / tui-data.c
index 522bb9acebd173f4d35769e77f9f95440b07350b..06bd42ee536c076ccb928bc047a849667b4b8560 100644 (file)
@@ -1,6 +1,6 @@
 /* TUI data manipulation routines.
 
-   Copyright (C) 1998-2019 Free Software Foundation, Inc.
+   Copyright (C) 1998-2020 Free Software Foundation, Inc.
 
    Contributed by Hewlett-Packard Company.
 
@@ -158,25 +158,6 @@ tui_prev_win (struct tui_win_info *cur_win)
 }
 
 
-/* Answer the window represented by name.  */
-struct tui_win_info *
-tui_partial_win_by_name (const char *name)
-{
-  if (name != NULL)
-    {
-      for (tui_win_info *item : all_tui_windows ())
-       {
-         const char *cur_name = item->name ();
-
-         if (strlen (name) <= strlen (cur_name)
-             && startswith (cur_name, name))
-           return item;
-       }
-    }
-
-  return NULL;
-}
-
 /* See tui-data.h.  */
 
 void
This page took 0.023358 seconds and 4 git commands to generate.