Skip to content

Commit

Permalink
Set unused option for jshint, removed unused variables in code
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner committed Oct 24, 2013
1 parent 6a05eeb commit 0d48cfd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"indent": 2,
"curly": true,
"trailing": true,
"undef": true
"undef": true,
"unused": true
}
2 changes: 1 addition & 1 deletion lib/control/UdpControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/control/test-UdpControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions test/unit/test-Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ test('Client', {
this.client.resume();

var eventCount = 0;
this.client.on('navdata', function(navdata) {
this.client.on('navdata', function() {
eventCount++;
});

Expand All @@ -238,7 +238,7 @@ test('Client', {
gotOptions = options;
};

var client = new Client(options);
new Client(options);
assert.strictEqual(gotOptions, options);
},

Expand Down

0 comments on commit 0d48cfd

Please sign in to comment.