chore(client): Remove unused clearCompleted user.ops function
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
// TODO move to client since it's only used there?
|
||||
// TODO rename file to clearCompletedTodos
|
||||
|
||||
module.exports = function clearCompletedTodos (todos) {
|
||||
_.remove(todos, todo => {
|
||||
return todo.completed && (!todo.challenge || !todo.challenge.id || todo.challenge.broken);
|
||||
});
|
||||
};
|
||||
@@ -5,7 +5,6 @@ import reset from './reset';
|
||||
import reroll from './reroll';
|
||||
import rebirth from './rebirth';
|
||||
import allocateNow from './allocateNow';
|
||||
import clearCompleted from './clearCompleted';
|
||||
import sortTask from './sortTask';
|
||||
import updateTask from './updateTask';
|
||||
import deleteTask from './deleteTask';
|
||||
@@ -56,7 +55,6 @@ module.exports = {
|
||||
reroll,
|
||||
rebirth,
|
||||
allocateNow,
|
||||
clearCompleted,
|
||||
sortTask,
|
||||
updateTask,
|
||||
deleteTask,
|
||||
|
||||
Reference in New Issue
Block a user