Browse Source

cmAlgorithms: Remove needless assignment.

Stephen Kelly 10 years ago
parent
commit
a5b10ae68a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Source/cmAlgorithms.h

+ 1 - 2
Source/cmAlgorithms.h

@@ -249,8 +249,7 @@ typename Range::const_iterator cmRemoveIndices(Range& r, InputRange const& rem)
     prevRem = *remIt;
     writer = ContainerAlgorithms::RemoveN(writer, pivot, count);
     }
-  writer = ContainerAlgorithms::RemoveN(writer, r.end(), count);
-  return writer;
+  return ContainerAlgorithms::RemoveN(writer, r.end(), count);
 }
 
 template<typename Range, typename MatchRange>