[Bug 1861] RBTree: redundant code removed
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Aug 1 20:43:36 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1861
--- Comment #10 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-08-01 15:43:35 CDT ---
(In reply to comment #9)
> (In reply to comment #8)
> > Created attachment 1264 [details]
> > RBTree remove redundant code - 2nd version
> >
> > New version of the patch now. The other uncovered cases will be proposed in a
> > patch for the sprbtree01 test.
>
> Looks good to me, I agree that the 3rd case is redundant/impossible---no black
> node should have a single black child, otherwise the red-black rules are
> violated.
Does this mean there is dead code in rbtree code?
If so, then is there a patch to remove the code and place a debug assert there?
Is this ready to commit?
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list