summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-20 21:15:47 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-24 14:16:02 (GMT)
commita5b10ae68a4a84face73767f96189673015946be (patch)
treeb16b5d8bc1df633ea73fa1f9e63dc589039d76b4 /Source/cmAlgorithms.h
parent7fd8557f4c3d761c8ec0e7c29c9fa74a3ff45295 (diff)
downloadCMake-a5b10ae68a4a84face73767f96189673015946be.zip
CMake-a5b10ae68a4a84face73767f96189673015946be.tar.gz
CMake-a5b10ae68a4a84face73767f96189673015946be.tar.bz2
cmAlgorithms: Remove needless assignment.
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index f00e1c0..43023db 100644
--- a/Source/cmAlgorithms.h
+++ b/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>