* remote.c (add_packet_config_cmd): Delete unused variables.
[binutils-gdb.git] / gdb / remote.c
index 4c8817d0c4a5895077ca022f2f8f6a2c7b7421b8..95f94a01898d585d0bc81307697a0f0df5792886 100644 (file)
@@ -640,13 +640,10 @@ add_packet_config_cmd (struct packet_config *config,
                       struct cmd_list_element **show_remote_list,
                       int legacy)
 {
-  struct cmd_list_element *set_cmd;
-  struct cmd_list_element *show_cmd;
   char *set_doc;
   char *show_doc;
-  char *help_doc;
-  char *print;
   char *cmd_name;
+
   config->name = name;
   config->title = title;
   config->detect = AUTO_BOOLEAN_AUTO;
@@ -655,8 +652,6 @@ add_packet_config_cmd (struct packet_config *config,
                        name, title);
   show_doc = xstrprintf ("Show current use of remote protocol `%s' (%s) packet",
                         name, title);
-  print = xstrprintf ("Current use of remote protocol `%s' (%s) is %%s",
-                     name, title);
   /* set/show TITLE-packet {auto,on,off} */
   cmd_name = xstrprintf ("%s-packet", title);
   add_setshow_auto_boolean_cmd (cmd_name, class_obscure,
@@ -754,7 +749,6 @@ show_remote_protocol_vcont_packet_cmd (struct ui_file *file, int from_tty,
                                       struct cmd_list_element *c,
                                       const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_vcont);
 }
 
@@ -773,7 +767,6 @@ show_remote_protocol_qSymbol_packet_cmd (struct ui_file *file, int from_tty,
                                         struct cmd_list_element *c,
                                         const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_qSymbol);
 }
 
@@ -793,7 +786,6 @@ show_remote_protocol_P_packet_cmd (struct ui_file *file, int from_tty,
                                   struct cmd_list_element *c,
                                   const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_P);
 }
 
@@ -826,7 +818,6 @@ show_remote_protocol_Z_software_bp_packet_cmd (struct ui_file *file, int from_tt
                                               struct cmd_list_element *c,
                                               const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_SOFTWARE_BP]);
 }
 
@@ -842,7 +833,6 @@ show_remote_protocol_Z_hardware_bp_packet_cmd (struct ui_file *file, int from_tt
                                               struct cmd_list_element *c,
                                               const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_HARDWARE_BP]);
 }
 
@@ -858,7 +848,6 @@ show_remote_protocol_Z_write_wp_packet_cmd (struct ui_file *file, int from_tty,
                                            struct cmd_list_element *c,
                                            const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_WRITE_WP]);
 }
 
@@ -874,7 +863,6 @@ show_remote_protocol_Z_read_wp_packet_cmd (struct ui_file *file, int from_tty,
                                           struct cmd_list_element *c,
                                           const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_READ_WP]);
 }
 
@@ -890,7 +878,6 @@ show_remote_protocol_Z_access_wp_packet_cmd (struct ui_file *file, int from_tty,
                                             struct cmd_list_element *c,
                                             const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_ACCESS_WP]);
 }
 
@@ -959,7 +946,6 @@ show_remote_protocol_binary_download_cmd (struct ui_file *file, int from_tty,
                                          struct cmd_list_element *c,
                                          const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_binary_download);
 }
 
@@ -978,7 +964,6 @@ show_remote_protocol_qPart_auxv_packet_cmd (struct ui_file *file, int from_tty,
                                            struct cmd_list_element *c,
                                            const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_qPart_auxv);
 }
 
@@ -996,7 +981,6 @@ show_remote_protocol_p_packet_cmd (struct ui_file *file, int from_tty,
                                   struct cmd_list_element *c,
                                   const char *value)
 {
-  deprecated_show_value_hack (file, from_tty, c, value);
   show_packet_config_cmd (&remote_protocol_p);
 }