Преглед изворни кода

cmAlgorithms: Remove sort of already-sorted container.

The indices is populated by an increasing number.
Stephen Kelly пре 10 година
родитељ
комит
7490632258
1 измењених фајлова са 0 додато и 1 уклоњено
  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);
 }