summaryrefslogtreecommitdiff
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-20 22:15:47 +0100
committerBrad King <brad.king@kitware.com>2015-02-24 09:16:02 -0500
commita5b10ae68a4a84face73767f96189673015946be (patch)
treeb16b5d8bc1df633ea73fa1f9e63dc589039d76b4 /Source/cmAlgorithms.h
parent7fd8557f4c3d761c8ec0e7c29c9fa74a3ff45295 (diff)
downloadcmake-a5b10ae68a4a84face73767f96189673015946be.tar.gz
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 f00e1c012b..43023dbf5d 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>