* common.cc (Sort_commons::operator()): Remove unnecessary code.

This commit is contained in:
Cary Coutant 2010-08-18 18:33:05 +00:00
parent 66b73624e8
commit 55455f8927
2 changed files with 5 additions and 10 deletions

View file

@ -1,3 +1,7 @@
2010-08-12 Cary Coutant <ccoutant@google.com>
* common.cc (Sort_commons::operator()): Remove unnecessary code.
2010-08-13 Ian Lance Taylor <iant@google.com>
* testsuite/incremental_test_1.c: Add prototype to avoid warning.

View file

@ -88,16 +88,7 @@ bool
Sort_commons<size>::operator()(const Symbol* pa, const Symbol* pb) const
{
if (pa == NULL)
{
if (pb == NULL)
{
// Stabilize sort. The order really doesn't matter, because
// these entries will be discarded, but we want to return
// the same result every time we compare pa and pb.
return pa < pb;
}
return false;
}
if (pb == NULL)
return true;