mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -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_size: this.getSize,
|
||||
looks_costumenumbername: this.getCostumeNumberName,
|
||||
looks_costumename: this.getCostumeName,
|
||||
looks_backdropnumbername: this.getBackdropNumberName
|
||||
};
|
||||
}
|
||||
|
@ -489,11 +488,6 @@ class Scratch3LooksBlocks {
|
|||
// Else return 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;
|
||||
|
|
|
@ -39,13 +39,6 @@ test('getCostumeNumberName can return costume name', t => {
|
|||
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 => {
|
||||
util.target.currentCostume = 2; // This is 0-indexed.
|
||||
const args = {NUMBER_NAME: 'number'};
|
||||
|
|
Loading…
Reference in a new issue