Skip to content

Commit

Permalink
Update Mist's Utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistium authored Aug 6, 2024
1 parent 3ce40ca commit c1a882c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions featured/Mist's Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@
},
"func": "err"
},
{
"func": "err"
},
{
"opcode": "clamp",
"text": "clamp [A] between [B] and [C]",
Expand Down Expand Up @@ -1231,9 +1228,6 @@
const round_2 = this.descendInput(node?.B).asNumber();
this.source += `\nvm.runtime.visualReport("${block.id}", Math.round((${round_1} / ${round_2}) * ${round_2}))\n`;
return;
case 'mistsutils.undefined':
this.source += `\nundefined\n`;
return;
case 'mistsutils.clamp':
const clamp_1 = this.descendInput(node?.A).asNumber();
const clamp_2 = this.descendInput(node?.B).asNumber();
Expand Down Expand Up @@ -1512,8 +1506,6 @@
const round_1 = this.descendInput(node?.A).asNumber();
const round_2 = this.descendInput(node?.B).asNumber();
return new TypedInput(`Math.round((${round_1} / ${round_2}) * ${round_2})`, TYPE_NUMBER);
case 'mistsutils.undefined':
return new TypedInput(`undefined`, TYPE_UNKNOWN);
case 'mistsutils.clamp':
const clamp_1 = this.descendInput(node?.A).asNumber();
const clamp_2 = this.descendInput(node?.B).asNumber();
Expand Down Expand Up @@ -1758,10 +1750,6 @@
A: this.descendInputOfBlock(block, 'A'),
B: this.descendInputOfBlock(block, 'B'),
};
case 'mistsutils_undefined':
return {
block, kind: 'mistsutils.undefined',
};
case 'mistsutils_clamp':
return {
block, kind: 'mistsutils.clamp',
Expand Down Expand Up @@ -2116,11 +2104,6 @@
A: this.descendInputOfBlock(block, 'A'),
B: this.descendInputOfBlock(block, 'B'),
};
case 'mistsutils_undefined':
return {
block,
kind: 'mistsutils.undefined',
};
case 'mistsutils_clamp':
return {
block,
Expand Down

0 comments on commit c1a882c

Please sign in to comment.