From 07eff8d6847f6299a8d22ae08d3cfcf478d07ca5 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Sun, 12 Nov 2017 23:29:18 +0100 Subject: [PATCH] feat(taskList): cleanup --- app-src/scripts/task-list/task-list-d.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app-src/scripts/task-list/task-list-d.js b/app-src/scripts/task-list/task-list-d.js index a75230d370..70d82a77c6 100644 --- a/app-src/scripts/task-list/task-list-d.js +++ b/app-src/scripts/task-list/task-list-d.js @@ -426,14 +426,7 @@ } static moveItem(array, oldIndex, newIndex) { - if (newIndex >= array.length) { - let k = newIndex - array.length; - while ((k--) + 1) { - array.push(undefined); - } - } array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]); - return array; // for testing purposes } }