Explorar o código

cmAlgorithms: Remove sort of already-sorted container.

The indices is populated by an increasing number.
Stephen Kelly %!s(int64=11) %!d(string=hai) anos
pai
achega
7490632258
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      Source/cmAlgorithms.h

+ 0 - 1
Source/cmAlgorithms.h

@@ -275,7 +275,6 @@ typename Range::const_iterator cmRemoveDuplicates(Range& r)
     {
     return r.end();
     }
-  std::sort(indices.begin(), indices.end());
   return cmRemoveIndices(r, indices);
 }