Skip to content
Prev Previous commit
Next Next commit
remove unusued
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jul 31, 2020
commit fae55a8cc4525f84e3e29e97a21ef93efd9039c9
2 changes: 0 additions & 2 deletions web-app/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const Routes = () => {
return <ErrorView send={send} error={context.error} />
}

console.log(`ROUTE: ${route}`)

return (
<Router route={route}>
{/* Setup */}
Expand Down
9 changes: 0 additions & 9 deletions web-app/src/services/state/actions/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as T from 'typings'
import * as TT from 'typings/tutorial'
import { assign, send } from 'xstate'
import * as selectors from '../../selectors'
import logger from '../../../services/logger'
import getStepNext from './utils/stepNext'
import getNext from './utils/getNext'

Expand Down Expand Up @@ -66,14 +65,6 @@ export const updatePosition = assign({
},
})

export const updateLevel = assign({
position: (context: T.MachineContext, event: T.MachineEvent): any => {
const levelId = context.position.levelId
console.log(`updateLevel: ${JSON.stringify(context.position)}`)
return { levelId, complete: false }
},
})

export const loadNext = send(
(context: T.MachineContext): T.Action => {
const level = selectors.currentLevel(context)
Expand Down