* common.cc (Sort_commons::operator()): Remove unnecessary code.
authorCary Coutant <ccoutant@google.com>
Wed, 18 Aug 2010 18:33:05 +0000 (18:33 +0000)
committerCary Coutant <ccoutant@google.com>
Wed, 18 Aug 2010 18:33:05 +0000 (18:33 +0000)
gold/ChangeLog
gold/common.cc

index 9eb928d6d3cc28463d6bfe75f7df2702090423b5..6e04f6e1a71162d115e4fdb747a709024efc9225 100644 (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.
index d5046e507aa1cb0b2b40e3645cda93d986d12733..8d122fa03f4ab1b96d017742e37be8f548804365 100644 (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;
-    }
+    return false;
   if (pb == NULL)
     return true;
 
This page took 0.045253 seconds and 4 git commands to generate.