[Build] Remove unused variables

...to satisfy JSHint
This commit is contained in:
Victor Woeltjen
2016-03-04 11:41:48 -08:00
parent bf232d0593
commit a1a7b2b8ce
44 changed files with 55 additions and 109 deletions

View File

@@ -38,8 +38,7 @@ define(
* time (typically wrapping `Date.now`)
*/
function TimerController($scope, $window, now) {
var timerObject,
formatter,
var formatter,
active = true,
relativeTimestamp,
lastTimestamp,

View File

@@ -21,8 +21,8 @@
*****************************************************************************/
define(
['moment'],
function (moment) {
[],
function () {
/**
* Calls functions every second, as close to the actual second

View File

@@ -144,7 +144,7 @@ define(
};
// Handle a specific representation of a specific domain object
ConductorRepresenter.prototype.represent = function represent(representation, representedObject) {
ConductorRepresenter.prototype.represent = function represent(representation) {
this.destroy();
if (this.views.indexOf(representation) !== -1 && !GLOBAL_SHOWING) {

View File

@@ -57,14 +57,11 @@ define(
};
ConductorTelemetryDecorator.prototype.requestTelemetry = function (requests) {
var self = this;
return this.telemetryService
.requestTelemetry(this.amendRequests(requests));
};
ConductorTelemetryDecorator.prototype.subscribe = function (callback, requests) {
var self = this;
return this.telemetryService
.subscribe(callback, this.amendRequests(requests));
};

View File

@@ -36,7 +36,7 @@ define(
* @memberof platform/features/imagery
*/
function MCTBackgroundImage($document) {
function link(scope, element, attrs) {
function link(scope, element) {
// General strategy here:
// - Keep count of how many images have been requested; this
// counter will be used as an internal identifier or sorts
@@ -49,7 +49,7 @@ define(
// in which images are actually loaded may be different, so
// some strategy like this is necessary to ensure that images
// do not display out-of-order.
var div, requested = 0, loaded = 0;
var requested = 0, loaded = 0;
function nextImage(url) {
var myCounter = requested,

View File

@@ -36,7 +36,7 @@ define(
* @constructor
* @param {Scope} $scope the controller's Angular scope
*/
function FixedController($scope, $q, dialogService, telemetryHandler, telemetryFormatter, throttle) {
function FixedController($scope, $q, dialogService, telemetryHandler, telemetryFormatter) {
var self = this,
handle,
names = {}, // Cache names by ID
@@ -230,7 +230,7 @@ define(
}
// Handle changes in the object's composition
function updateComposition(ids) {
function updateComposition() {
// Populate panel positions
// TODO: Ensure defaults here
// Resubscribe - objects in view have changed

View File

@@ -21,8 +21,8 @@
*****************************************************************************/
define(
['./TextProxy', './AccessorMutator'],
function (TextProxy, AccessorMutator) {
['./TextProxy'],
function (TextProxy) {
// Method names to expose from this proxy
var HIDE = 'hideTitle', SHOW = 'showTitle';

View File

@@ -58,11 +58,7 @@ define(
lastIds.some(mismatch);
}
function setupColumns(telemetryObjects) {
var id = $scope.domainObject && $scope.domainObject.getId(),
firstId =
telemetryObjects[0] && telemetryObjects[0].getId();
function setupColumns() {
columns = [];
columns.push(new DomainColumn(telemetryFormatter));

View File

@@ -143,7 +143,7 @@ define(
self = this;
if (handle) {
handle.promiseTelemetryObjects().then(function (objects) {
handle.promiseTelemetryObjects().then(function () {
table.buildColumns(handle.getMetadata());
self.filterColumns();

View File

@@ -3,7 +3,7 @@ define(
["../controllers/MCTTableController"],
function (MCTTableController) {
function MCTTable($timeout) {
function MCTTable() {
return {
restrict: "E",
templateUrl: "platform/features/table/res/templates/mct-data-table.html",
@@ -13,7 +13,7 @@ define(
rows: "=",
enableFilter: "=?",
enableSort: "=?"
},
}
};
}

View File

@@ -35,10 +35,10 @@ define(
getPointCount: function () {
return 0;
},
getDomainValue: function (index) {
getDomainValue: function () {
return 0;
},
getRangeValue: function (index) {
getRangeValue: function () {
return 0;
}
};

View File

@@ -55,7 +55,6 @@ define(
function initializeValues() {
var values = [],
slope = 0,
previous = 0,
i;
// Add a point (or points, if needed) reaching to the provided

View File

@@ -63,12 +63,12 @@ define(
}
// Set the duration associated with this object
function setDuration(value) {
function setDuration() {
// No-op; duration is implicit
}
// Set the end time associated with this object
function setEnd(value) {
function setEnd() {
// No-op; end time is implicit
}

View File

@@ -20,11 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
define(
['../TimelineFormatter'],
function (TimelineFormatter) {
var FORMATTER = new TimelineFormatter();
[],
function () {
/**
* Controls the pan-zoom state of a timeline view.
@@ -113,7 +110,6 @@ define(
* @returns {number} duration, in milliseconds
*/
duration: function (value) {
var prior = duration;
if (arguments.length > 0) {
duration = roundDuration(value);
}

View File

@@ -45,8 +45,6 @@ define(
min = 0,
// current maximum
max = 0,
// current displayed time span
duration = 1000,
// line colors to display
colors = Object.keys(domainObjects);

View File

@@ -40,7 +40,6 @@ define(
height = element[0].offsetHeight,
rect = element[0].getBoundingClientRect(),
offset = event.pageY - rect.top,
dataTransfer = event.dataTransfer,
id = dndService.getData(
SwimlaneDragConstants.MCT_DRAG_TYPE
),