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

@ -33,9 +33,6 @@
#include "frame.h"
#include "buildsym.h"
static struct using_direct *cp_copy_usings (struct using_direct *using,
struct obstack *obstack);
static struct symbol *lookup_namespace_scope (const char *name,
const char *linkage_name,
const struct block *block,
@ -222,36 +219,6 @@ cp_add_using (const char *dest,
return retval;
}
/* Make a copy of the using directives in the list pointed to by
USING, using OBSTACK to allocate memory. Free all memory pointed
to by USING via xfree. */
static struct using_direct *
cp_copy_usings (struct using_direct *using,
struct obstack *obstack)
{
if (using == NULL)
{
return NULL;
}
else
{
struct using_direct *retval
= obstack_alloc (obstack, sizeof (struct using_direct));
retval->import_src = obsavestring (using->import_src, strlen (using->import_src),
obstack);
retval->import_dest = obsavestring (using->import_dest, strlen (using->import_dest),
obstack);
retval->next = cp_copy_usings (using->next, obstack);
xfree (using->import_src);
xfree (using->import_dest);
xfree (using);
return retval;
}
}
/* The C++-specific version of name lookup for static and global
names. This makes sure that names get looked for in all namespaces
that are in scope. NAME is the natural name of the symbol that