This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] ui-out.c: Remove unused enum
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 2 Feb 2016 21:40:58 -0000
- Subject: [binutils-gdb] ui-out.c: Remove unused enum
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6456a18b717e7b1ae96d77a2549fbf4da60d6617
commit 6456a18b717e7b1ae96d77a2549fbf4da60d6617
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Tue Feb 2 16:39:06 2016 -0500
ui-out.c: Remove unused enum
This is unused since 54eb231c4bca046e8b8cd73461f695e02c5620d5, where
static arrays of ui_out_levels were replaced with vectors.
gdb/ChangeLog:
* ui-out.c (MAX_UI_OUT_LEVELS): Remove.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/ui-out.c | 6 ------
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3c97ac2..829a48c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
+
+ * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
+
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
* amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index aa6d6fe..e5a2bf1 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -37,12 +37,6 @@ struct ui_out_hdr
struct ui_out_hdr *next;
};
-/* Maintain a stack so that the info applicable to the inner most list
- is always available. Stack/nested level 0 is reserved for the
- top-level result. */
-
-enum { MAX_UI_OUT_LEVELS = 8 };
-
struct ui_out_level
{
/* Count each field; the first element is for non-list fields. */