aboutsummaryrefslogtreecommitdiff
path: root/gold/common.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2010-08-18 18:33:05 +0000
committerCary Coutant <ccoutant@google.com>2010-08-18 18:33:05 +0000
commit55455f8927ff9d4703d844163ef51b6e26cdef9e (patch)
tree0da73162dae3010439340d68b826da71caaa57fa /gold/common.cc
parent66b73624e86af015d447b3653a45593bb5f733ae (diff)
downloadgdb-55455f8927ff9d4703d844163ef51b6e26cdef9e.zip
gdb-55455f8927ff9d4703d844163ef51b6e26cdef9e.tar.gz
gdb-55455f8927ff9d4703d844163ef51b6e26cdef9e.tar.bz2
* common.cc (Sort_commons::operator()): Remove unnecessary code.
Diffstat (limited to 'gold/common.cc')
-rw-r--r--gold/common.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/gold/common.cc b/gold/common.cc
index d5046e5..8d122fa 100644
--- a/gold/common.cc
+++ b/gold/common.cc
@@ -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;
- }
+ return false;
if (pb == NULL)
return true;