Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ba52b0

Browse files
committed
refactor & remove unused
1 parent7f0dd62 commit9ba52b0

File tree

5 files changed

+2
-22
lines changed

5 files changed

+2
-22
lines changed

‎src/editor/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
8686
},
8787
[COMMANDS.RECEIVE_ACTION]:(action:string|CR.Action)=>{
8888
console.log('onReceiveAction',action)
89-
machine.onReceive(action)
89+
machine.send(action)
9090
}
9191
})

‎src/state/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class StateMachine {
3636
this.service.stop()
3737
}
3838
send(action:string|CR.Action){
39-
console.log('machine.send')
40-
console.log(action)
41-
this.service.send(action)
42-
}
43-
onReceive(action:string|CR.Action){
44-
console.log(action)
4539
this.service.send(action)
4640
}
4741
}

‎src/state/machine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const machine = Machine<
6161
states:{
6262
LoadNext:{
6363
id:'tutorial-load-next',
64-
// onEntry: () => send('LOAD_NEXT'),
64+
// onEntry:[() => send('LOAD_NEXT')],
6565
on:{
6666
LOAD_NEXT:[
6767
{

‎src/state/message.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎typings/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,4 @@ export interface StateMachine {
168168
activate():void
169169
deactivate():void
170170
send(action:string|Action):void
171-
onReceive(action:string|Action):void
172171
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp