Delete unused or undefined functions.

* breakpoint.c (ep_parse_optional_filename): Delete.
        * dcache.c (dcache_write_line): Remove declaration.
        * infrun.c (build_infrun): Remove declaration.
        * tracepoint.c (tracepoint_save_command): Remove declaration.
        * linux-nat.c (init_lwp_list): Delete. No longer used.
        * event-loop.c (check_async_signal_handlers): Delete declaration.
        * infrun.c (init_execution_control_state): Delete.
        (proceed): Update comment to avoid mentioning
        init_execution_control_state.
        * target.c (kill_or_be_killed, nosupport_runtime): Delete.
        * ada-lang.c (ada_to_static_fixed_value): Delete.
        * scm-lang.c (evaluate_subexp_scm): Delete declaration.
        * cp-namespace.c (cp_copy_usings): Delete.
        * xml-syscall.c (xml_number_of_syscalls): Delete.
        * progspace.c (find_program_space_by_num): Delete.
        * inflow.c (handle_sigio): Delete declaration.
        * hppa-tdep.c (hppa_alignof): Delete.
        * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
        (mipsnbsd_core_osabi_sniffer): Delete.
This commit is contained in:
Joel Brobecker
2010-01-19 09:39:12 +00:00
parent 37a1f2771f
commit d5cd603472
16 changed files with 31 additions and 276 deletions

View File

@@ -187,8 +187,6 @@ static void stopat_command (char *arg, int from_tty);
static char *ep_parse_optional_if_clause (char **arg);
static char *ep_parse_optional_filename (char **arg);
static void catch_exception_command_1 (enum exception_event_kind ex_event,
char *arg, int tempflag, int from_tty);
@@ -7651,42 +7649,6 @@ ep_parse_optional_if_clause (char **arg)
return cond_string;
}
/* This function attempts to parse an optional filename from the arg
string. If one is not found, it returns NULL.
Else, it returns a pointer to the parsed filename. (This function
makes no attempt to verify that a file of that name exists, or is
accessible.) And, it updates arg to point to the first character
following the parsed filename in the arg string.
Note that clients needing to preserve the returned filename for
future access should copy it to their own buffers. */
static char *
ep_parse_optional_filename (char **arg)
{
static char filename[1024];
char *arg_p = *arg;
int i;
char c;
if ((*arg_p == '\0') || isspace (*arg_p))
return NULL;
for (i = 0;; i++)
{
c = *arg_p;
if (isspace (c))
c = '\0';
filename[i] = c;
if (c == '\0')
break;
arg_p++;
}
*arg = arg_p;
return filename;
}
/* Commands to deal with catching events, such as signals, exceptions,
process start/exit, etc. */