Remove unused util variable

This commit is contained in:
liam4 2016-09-02 01:01:17 -03:00
parent f981e8747f
commit 602cb47a1e
No known key found for this signature in database
GPG key ID: 3A7605D17C36EF05

View file

@ -42,23 +42,16 @@ Scratch3SensingBlocks.prototype.getMouseDown = function (args, util) {
return util.ioQuery('mouse', 'getIsDown');
};
Scratch3SensingBlocks.prototype.current = function (args, util) {
Scratch3SensingBlocks.prototype.current = function (args) {
var date = new Date();
switch (args.CURRENTMENU) {
case 'year':
return date.getFullYear();
case 'month':
return date.getMonth();
case 'date':
return date.getDate();
case 'dayofweek':
return date.getDay();
case 'hour':
return date.getHours();
case 'minute':
return date.getMinutes();
case 'second':
return date.getSeconds();
case 'year': return date.getFullYear();
case 'month': return date.getMonth() + 1; // getMonth is zero-based
case 'date': return date.getDate();
case 'dayofweek': return date.getDay();
case 'hour': return date.getHours();
case 'minute': return date.getMinutes();
case 'second': return date.getSeconds();
}
};