Skip to content

Commit

Permalink
fix(core): fixing warnings and adding a nice feature
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed Oct 9, 2015
1 parent 35eb3bf commit fb558d2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions actions/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export function reset (context) {
context.dispatch('RESET_GAME');
}

export function destroyGame (context) {
context.dispatch('DESTROY_GAME');
}

export function tick (context) {
context.dispatch('GAME_TICK');
}
Expand Down
2 changes: 0 additions & 2 deletions components/game/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import GameStats from './GameStats';

// actions
import {
destroyGame,
tick,
beginTest,
updateWord,
Expand Down Expand Up @@ -67,7 +66,6 @@ class Game extends React.Component {
if (this._hasGameTick) {
clearInterval(this._gameTick);
}
this.props.context.executeAction(destroyGame);
}

updateStats () {
Expand Down
6 changes: 0 additions & 6 deletions stores/GameStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ class GameStore extends BaseStore {
this.emitChange();
}

handleDestroyGame () {
this.init();
this.emitChange();
}

handleGameTick () {
this.calcStats();
this.emitChange();
Expand All @@ -169,7 +164,6 @@ class GameStore extends BaseStore {
GameStore.storeName = 'GameStore';

GameStore.handlers = {
DESTROY_GAME: 'handleDestroyGame',
RANDOM_TEXT_LOAD: 'handleRandomTextLoad',
RANDOM_TEXT_LOADED: 'handleRandomTextLoaded',
GAME_TICK: 'handleGameTick',
Expand Down

0 comments on commit fb558d2

Please sign in to comment.