From 55179454f278788c00b91e4cdaed4cb7c4696275 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 3 May 2016 18:50:00 +0100 Subject: [PATCH] Removed condition from splice() --- src/ilist.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/ilist.h b/src/ilist.h index 8dc3dbc9..b969f71d 100644 --- a/src/ilist.h +++ b/src/ilist.h @@ -781,11 +781,8 @@ namespace etl { if (&other == this) { - if (from != to) - { - // Internal move. - move(to, from); - } + // Internal move. + move(to, from); } else { @@ -802,11 +799,8 @@ namespace etl { if (&other == this) { - if (first != to) - { - // Internal move. - move(to, first, last); - } + // Internal move. + move(to, first, last); } else {