Skip to content

Commit

Permalink
chore(client): Remove unused clearCompleted user.ops function
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Jun 18, 2016
1 parent 1a19605 commit 813aa2c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 57 deletions.
3 changes: 0 additions & 3 deletions common/script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ import releasePets from './ops/releasePets';
import releaseBoth from './ops/releaseBoth';
import releaseMounts from './ops/releaseMounts';
import updateTask from './ops/updateTask';
import clearCompleted from './ops/clearCompleted';
import sell from './ops/sell';
import unlock from './ops/unlock';
import revive from './ops/revive';
Expand Down Expand Up @@ -179,7 +178,6 @@ api.ops = {
releaseBoth,
releaseMounts,
updateTask,
clearCompleted,
sell,
unlock,
revive,
Expand Down Expand Up @@ -256,7 +254,6 @@ api.wrap = function wrapUser (user, main = true) {
reroll: _.partial(importedOps.reroll, user),
rebirth: _.partial(importedOps.rebirth, user),
allocateNow: _.partial(importedOps.allocateNow, user),
clearCompleted: _.partial(importedOps.clearCompleted, user),
sortTask: _.partial(importedOps.sortTask, user),
updateTask: _.partial(importedOps.updateTask, user),
deleteTask: _.partial(importedOps.deleteTask, user),
Expand Down
10 changes: 0 additions & 10 deletions common/script/ops/clearCompleted.js

This file was deleted.

2 changes: 0 additions & 2 deletions common/script/ops/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -56,7 +55,6 @@ module.exports = {
reroll,
rebirth,
allocateNow,
clearCompleted,
sortTask,
updateTask,
deleteTask,
Expand Down
37 changes: 0 additions & 37 deletions test/common/ops/clearCompleted.js

This file was deleted.

5 changes: 0 additions & 5 deletions website/client/js/services/userServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,6 @@ angular.module('habitrpg')
Tasks.deleteTask(data.params.id);
},

clearCompleted: function () {
user.ops.clearCompleted(user.todos);
Tasks.clearCompletedTodos();
},

readNotification: function (notificationId) {
UserNotifications.readNotification(notificationId);
},
Expand Down

0 comments on commit 813aa2c

Please sign in to comment.