瀏覽代碼

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);
 }