From a5b10ae68a4a84face73767f96189673015946be Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 20 Feb 2015 22:15:47 +0100 Subject: cmAlgorithms: Remove needless assignment. --- Source/cmAlgorithms.h | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v0.12