This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Two identical "else if" blocks ?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 31 Dec 2006 23:01:18 -0500
- Subject: Re: Two identical "else if" blocks ?
- References: <20070101035248.GE3428@adacore.com>
On Mon, Jan 01, 2007 at 07:52:49AM +0400, Joel Brobecker wrote:
> It looks like the two blocks are completely identical, and we should
> be able to remove one of them. Should I perhaps test what happens
> when I delete, say, the first one?
They're not 100% the same (there's an extra b->inserted check) so I'd
recommend deleting the second one, since it's dead code.
Looks like they've been the same since at least the dawn of CVS.
--
Daniel Jacobowitz
CodeSourcery