Set unused option for jshint, removed unused variables in code

Esse commit está contido em:
Robin Mehner
2013-10-24 14:46:22 +02:00
commit 0d48cfd285
5 arquivos alterados com 8 adições e 8 exclusões
+2 -1
Ver Arquivo
@@ -4,5 +4,6 @@
"indent": 2,
"curly": true,
"trailing": true,
"undef": true
"undef": true,
"unused": true
}
+1 -1
Ver Arquivo
@@ -49,7 +49,7 @@ meta.methods(AtCommandCreator).forEach(function(methodName) {
};
});
UdpControl.prototype.ack = function(ack) {
UdpControl.prototype.ack = function() {
if (this._blocked.state === states.WAITING_FOR_ACK) {
assert(this._blocked.cmd);
assert(this._blocked.ackTimer);
@@ -3,8 +3,7 @@ var net = require('net');
var assert = require('assert');
var TcpVideoStream = require(common.lib + '/video/TcpVideoStream');
var server = net.createServer(function(connection) {
});
var server = net.createServer(function() {});
var events = [];
server.listen(common.TCP_PORT, function() {
+2 -2
Ver Arquivo
@@ -64,7 +64,7 @@ test('UdpControl', {
ip : fakeIp,
});
var callback = sinon.spy();
var config = control.config('general:navdata_demo', 'TRUE', callback);
control.config('general:navdata_demo', 'TRUE', callback);
control.flush();
this.clock.tick(500);
assert.equal(callback.callCount, 1);
@@ -83,7 +83,7 @@ test('UdpControl', {
ip : fakeIp,
});
var callback = sinon.spy();
var config = control.config('general:navdata_demo', 'TRUE', callback);
control.config('general:navdata_demo', 'TRUE', callback);
control.flush();
control.ack();
control.ackReset();
+2 -2
Ver Arquivo
@@ -221,7 +221,7 @@ test('Client', {
this.client.resume();
var eventCount = 0;
this.client.on('navdata', function(navdata) {
this.client.on('navdata', function() {
eventCount++;
});
@@ -238,7 +238,7 @@ test('Client', {
gotOptions = options;
};
var client = new Client(options);
new Client(options);
assert.strictEqual(gotOptions, options);
},