mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-25 05:31:44 -04:00
Remove superfluous runtime not optional warnings.
This commit is contained in:
parent
dfcd09fedc
commit
94cc7e66b6
1 changed files with 0 additions and 9 deletions
|
@ -582,10 +582,6 @@ class Blocks {
|
||||||
// Changing the value in a dropdown
|
// Changing the value in a dropdown
|
||||||
block.fields[args.name].value = args.value;
|
block.fields[args.name].value = args.value;
|
||||||
|
|
||||||
if (!this.runtime){
|
|
||||||
log.warn('Runtime is not optional, it should get passed in when the block container is created.');
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// The selected item in the sensing of block menu needs to change based on the
|
// The selected item in the sensing of block menu needs to change based on the
|
||||||
// selected target. Set it to the first item in the menu list.
|
// selected target. Set it to the first item in the menu list.
|
||||||
// TODO: (#1787)
|
// TODO: (#1787)
|
||||||
|
@ -611,11 +607,6 @@ class Blocks {
|
||||||
block.mutation = mutationAdapter(args.value);
|
block.mutation = mutationAdapter(args.value);
|
||||||
break;
|
break;
|
||||||
case 'checkbox': {
|
case 'checkbox': {
|
||||||
if (!this.runtime) {
|
|
||||||
log.warn('Runtime is not optional, it should get passed in when the block container is created.');
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// A checkbox usually has a one to one correspondence with the monitor
|
// A checkbox usually has a one to one correspondence with the monitor
|
||||||
// block but in the case of monitored reporters that have arguments,
|
// block but in the case of monitored reporters that have arguments,
|
||||||
// map the old id to a new id, creating a new monitor block if necessary
|
// map the old id to a new id, creating a new monitor block if necessary
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue