From: Cary Coutant Date: Wed, 18 Aug 2010 18:33:05 +0000 (+0000) Subject: * common.cc (Sort_commons::operator()): Remove unnecessary code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55455f8927ff9d4703d844163ef51b6e26cdef9e;p=binutils-gdb.git * common.cc (Sort_commons::operator()): Remove unnecessary code. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 9eb928d6d3c..6e04f6e1a71 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2010-08-12 Cary Coutant + + * common.cc (Sort_commons::operator()): Remove unnecessary code. + 2010-08-13 Ian Lance Taylor * testsuite/incremental_test_1.c: Add prototype to avoid warning. diff --git a/gold/common.cc b/gold/common.cc index d5046e507aa..8d122fa03f4 100644 --- a/gold/common.cc +++ b/gold/common.cc @@ -88,16 +88,7 @@ bool Sort_commons::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; - } + return false; if (pb == NULL) return true;