mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Remove doNothing method
This commit is contained in:
parent
62b8dd93af
commit
25bb4bc82c
1 changed files with 6 additions and 7 deletions
|
@ -35,11 +35,12 @@ class Scratch3MotionBlocks {
|
|||
motion_xposition: this.getX,
|
||||
motion_yposition: this.getY,
|
||||
motion_direction: this.getDirection,
|
||||
motion_scroll_right: this.doNothing,
|
||||
motion_scroll_up: this.doNothing,
|
||||
motion_align_scene: this.doNothing,
|
||||
motion_xscroll: this.doNothing,
|
||||
motion_yscroll: this.doNothing
|
||||
// Legacy no-op blocks:
|
||||
motion_scroll_right: () => {},
|
||||
motion_scroll_up: () => {},
|
||||
motion_align_scene: () => {},
|
||||
motion_xscroll: () => {},
|
||||
motion_yscroll: () => {}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -259,8 +260,6 @@ class Scratch3MotionBlocks {
|
|||
getDirection (args, util) {
|
||||
return util.target.direction;
|
||||
}
|
||||
|
||||
doNothing () {}
|
||||
}
|
||||
|
||||
module.exports = Scratch3MotionBlocks;
|
||||
|
|
Loading…
Reference in a new issue