This hook appears to be unused.  I guess it was used from insight or
something like that at some point.  But I grepped in today's source of
insight [1] and there was no match.  So I think it's safe to remove.
gdb/ChangeLog:
	* top.c (pre_init_ui_hook): Remove.
[1] https://sourceware.org/git/?p=insight.git
Change-Id: Ia14499a4b6b9d79bb9a526d635fe44a654ef2a27
+2021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * top.c (pre_init_ui_hook): Remove.
+
 2021-01-12  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
 
       command_handler (command);
     }
 }
-\f
-void (*pre_init_ui_hook) (void);
 
 #ifdef __MSDOS__
 static void
   saved_command_line = xstrdup ("");
   previous_saved_command_line = xstrdup ("");
 
-  if (pre_init_ui_hook)
-    pre_init_ui_hook ();
-
   /* Run the init function of each source file.  */
 
 #ifdef __MSDOS__