chore: Remove unsed variables from codebase

This commit is contained in:
Vikash Agrawal
2017-05-04 11:17:56 +05:30
parent 2df999ef75
commit 57d3965fa6
7 changed files with 12 additions and 19 deletions

View File

@ -81,7 +81,7 @@ define(['EventEmitter'], function (EventEmitter) {
* @param listener
* @returns {function} a function for deregistering the provided listener
*/
LocalClock.prototype.on = function (event, listener) {
LocalClock.prototype.on = function (event) {
var result = EventEmitter.prototype.on.apply(this, arguments);
if (this.listeners(event).length === 1) {
@ -97,7 +97,7 @@ define(['EventEmitter'], function (EventEmitter) {
* @param listener
* @returns {function} a function for deregistering the provided listener
*/
LocalClock.prototype.off = function (event, listener) {
LocalClock.prototype.off = function (event) {
var result = EventEmitter.prototype.off.apply(this, arguments);
if (this.listeners(event).length === 0) {