diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-19 09:39:12 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-19 09:39:12 +0000 |
commit | d5cd603472bb4b3c14782728aa55bbafdfe783e8 (patch) | |
tree | 550acd299382450c49a10aa4afcaeb87322a0e1b /gdb/cp-namespace.c | |
parent | 37a1f2771f06b9f7ef98af3270bedb2d48ac31a5 (diff) | |
download | gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.zip gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.tar.gz gdb-d5cd603472bb4b3c14782728aa55bbafdfe783e8.tar.bz2 |
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.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index f350742..04b665b 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -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 |