[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

@@ -25,10 +25,8 @@
* @namespace platform/commonUI/browse
*/
define(
[
'../../../representation/src/gestures/GestureConstants'
],
function (GestureConstants) {
[],
function () {
var ROOT_ID = "ROOT";

View File

@@ -28,9 +28,7 @@ define(
function () {
var NON_PERSISTENT_WARNING =
"Tried to create an object in non-persistent container.",
NO_COMPOSITION_WARNING =
"Could not add to composition; no composition in ";
"Tried to create an object in non-persistent container.";
/**
* The creation service is responsible for instantiating and

View File

@@ -26,8 +26,6 @@
define(
[],
function () {
var ROOT_ID = "ROOT",
DEFAULT_PATH = "/mine";
/**
* The new tab action allows a domain object to be opened
* into a new browser tab.

View File

@@ -79,8 +79,7 @@ define(
}
function doWizardSave(parent) {
var context = domainObject.getCapability("context"),
wizard = new CreateWizard(
var wizard = new CreateWizard(
domainObject,
parent,
self.policyService

View File

@@ -37,10 +37,7 @@ define(
* @implements {PersistenceCapability}
*/
function EditableActionCapability(
actionCapability,
editableObject,
domainObject,
cache
actionCapability
) {
var action = Object.create(actionCapability);

View File

@@ -68,8 +68,7 @@ define(
EditableDomainObjectCache.prototype.getEditableObject = function (domainObject) {
var type = domainObject.getCapability('type'),
EditableDomainObject = this.EditableDomainObject,
editableObject,
statusListener;
editableObject;
// Track the top-level domain object; this will have
// some special behavior for its context capability.

View File

@@ -109,8 +109,8 @@ define(
// Handle a specific representation of a specific domain object
EditRepresenter.prototype.represent = function represent(representation, representedObject) {
var scope = this.scope,
self = this;
var scope = this.scope;
// Track the key, to know which view configuration to save to.
this.key = (representation || {}).key;
// Track the represented object

View File

@@ -21,8 +21,8 @@
*****************************************************************************/
define(
['moment'],
function (moment) {
[],
function () {
var TICK_SPACING_PX = 150;
@@ -180,7 +180,7 @@ define(
};
}
function updateOuterStart(t) {
function updateOuterStart() {
var ngModel = $scope.ngModel;
ngModel.inner.start =
@@ -195,7 +195,7 @@ define(
updateTicks();
}
function updateOuterEnd(t) {
function updateOuterEnd() {
var ngModel = $scope.ngModel;
ngModel.inner.end =

View File

@@ -60,9 +60,7 @@ define(
*/
function TreeNodeController($scope, $timeout) {
var self = this,
selectedObject = ($scope.ngModel || {}).selectedObject,
isSelected = false,
hasBeenExpanded = false;
selectedObject = ($scope.ngModel || {}).selectedObject;
// Look up the id for a domain object. A convenience
// for mapping; additionally does some undefined-checking.

View File

@@ -94,13 +94,6 @@ define(
* @constructor
*/
function MCTSplitPane($parse, $log, $interval) {
var anchors = {
left: true,
right: true,
top: true,
bottom: true
};
function controller($scope, $element, $attrs) {
var anchorKey = $attrs.anchor || DEFAULT_ANCHOR,
anchor,
@@ -162,7 +155,7 @@ define(
// Getter-setter for the pixel offset of the splitter,
// relative to the current edge.
function getSetPosition(value) {
var min, max, prior = position;
var prior = position;
if (typeof value === 'number') {
position = value;
enforceExtrema();

View File

@@ -28,13 +28,7 @@ define(
var SPLITTER_TEMPLATE = "<div class='abs'" +
"mct-drag-down=\"splitter.startMove()\" " +
"mct-drag=\"splitter.move(delta)\" " +
"mct-drag-up=\"splitter.endMove()\"></div>",
OFFSETS_BY_EDGE = {
left: "offsetLeft",
right: "offsetRight",
top: "offsetTop",
bottom: "offsetBottom"
};
"mct-drag-up=\"splitter.endMove()\"></div>";
/**
* Implements `mct-splitter` directive.
@@ -50,7 +44,6 @@ define(
scope.splitter = {
// Begin moving this splitter
startMove: function () {
var splitter = element[0];
initialPosition = mctSplitPane.position();
mctSplitPane.toggleClass('resizing');
},

View File

@@ -81,8 +81,7 @@ define(
winDim = [ $window.innerWidth, $window.innerHeight ],
styles = { position: 'absolute' },
margin,
offset,
bubble;
offset;
function adjustNegatives(value, index) {
return value < 0 ? (value + winDim[index]) : value;

View File

@@ -379,9 +379,8 @@ define(
*/
NotificationService.prototype.setActiveNotification =
function (notification) {
var timeout;
var self = this,
timeout;
this.active.notification = notification;
/*
If autoDismiss has been specified, OR there are other