mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-17 17:54:37 -04:00
Remove unused getCostumeName function
This commit is contained in:
parent
24c6338302
commit
c24e34d4e3
2 changed files with 0 additions and 13 deletions
|
@ -252,7 +252,6 @@ class Scratch3LooksBlocks {
|
||||||
looks_goforwardbackwardlayers: this.goForwardBackwardLayers,
|
looks_goforwardbackwardlayers: this.goForwardBackwardLayers,
|
||||||
looks_size: this.getSize,
|
looks_size: this.getSize,
|
||||||
looks_costumenumbername: this.getCostumeNumberName,
|
looks_costumenumbername: this.getCostumeNumberName,
|
||||||
looks_costumename: this.getCostumeName,
|
|
||||||
looks_backdropnumbername: this.getBackdropNumberName
|
looks_backdropnumbername: this.getBackdropNumberName
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -489,11 +488,6 @@ class Scratch3LooksBlocks {
|
||||||
// Else return name
|
// Else return name
|
||||||
return util.target.getCostumes()[util.target.currentCostume].name;
|
return util.target.getCostumes()[util.target.currentCostume].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
getCostumeName (args, util) {
|
|
||||||
// Obsolete block from earlier Scratch versions.
|
|
||||||
return util.target.getCostumes()[util.target.currentCostume].name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Scratch3LooksBlocks;
|
module.exports = Scratch3LooksBlocks;
|
||||||
|
|
|
@ -39,13 +39,6 @@ test('getCostumeNumberName can return costume name', t => {
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('getCostumeName returns costume name', t => {
|
|
||||||
util.target.currentCostume = 0; // This is 0-indexed.
|
|
||||||
const name = blocks.getCostumeNumberName({}, util);
|
|
||||||
t.strictEqual(name, 'first name');
|
|
||||||
t.end();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('getBackdropNumberName returns 1-indexed costume number', t => {
|
test('getBackdropNumberName returns 1-indexed costume number', t => {
|
||||||
util.target.currentCostume = 2; // This is 0-indexed.
|
util.target.currentCostume = 2; // This is 0-indexed.
|
||||||
const args = {NUMBER_NAME: 'number'};
|
const args = {NUMBER_NAME: 'number'};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue