public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Remove an unused declaration from value.h
@ 2022-03-26 18:16 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-03-26 18:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

value.h has a declaration of value_print_array_elements that is
incorrect.  In C, this would have been an error, but in C++ this is a
declaration of an overload that is neither defined nor used.  This
patch removes the declaration.
---
 gdb/value.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gdb/value.h b/gdb/value.h
index 4cd2044ac7c..7e1eec22413 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -1089,10 +1089,6 @@ extern void print_floating (const gdb_byte *valaddr, struct type *type,
 extern void value_print (struct value *val, struct ui_file *stream,
 			 const struct value_print_options *options);
 
-extern void value_print_array_elements (struct value *val,
-					struct ui_file *stream, int format,
-					enum val_prettyformat pretty);
-
 /* Release values from the value chain and return them.  Values
    created after MARK are released.  If MARK is nullptr, or if MARK is
    not found on the value chain, then all values are released.  Values
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-26 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-26 18:16 [pushed] Remove an unused declaration from value.h Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).