@@ -209,24 +209,23 @@ public void editWork(final Work workToBeEdited, final Work newValuedWork) {
209209 }
210210
211211 public void deleteWork (final Work workToBeDeleted ) {
212+ LOG .info ("Deleting work '{}'." , workToBeDeleted );
212213
213214 model .getPastWorkItems ().removeIf (w -> (w .getId () == workToBeDeleted .getId ()));
214-
215215 model .getWorkRepository ().delete (workToBeDeleted );
216-
217216 }
218217
219218 /**
220219 * Changes the indexes of the originalList parameter to have a consistent order.
221220 *
222221 * @param originalList
223- * list of all projects to adapt the indexes for
222+ * list of all projects to adapt the indexes for
224223 * @param changedProject
225- * the project which has changed which already has the new index
224+ * the project which has changed which already has the new index
226225 * @param oldIndex
227- * the old index of the changed project
226+ * the old index of the changed project
228227 * @param newIndex
229- * the new index of the changed project (which the projects also already has)
228+ * the new index of the changed project (which the projects also already has)
230229 * @return all projects whose index has been adapted
231230 */
232231 List <Project > resortProjectIndexes (final List <Project > originalList , final Project changedProject ,
@@ -263,9 +262,9 @@ List<Project> resortProjectIndexes(final List<Project> originalList, final Proje
263262 * Decreases all indexes by one, after the removed index
264263 *
265264 * @param originalList
266- * list of all projects to adapt the indexes for
265+ * list of all projects to adapt the indexes for
267266 * @param removedIndex
268- * the index which has been removed
267+ * the index which has been removed
269268 * @return all projects whose index has been adapted
270269 */
271270 List <Project > adaptProjectIndexesAfterRemoving (final List <Project > originalList , final int removedIndex ) {
0 commit comments