[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

@ -53,8 +53,7 @@ define(
* @param {ViewDefinition[]} views an array of view extensions
*/
function MCTRepresentation(representations, views, representers, $q, templateLinker, $log) {
var representationMap = {},
gestureMap = {};
var representationMap = {};
// Assemble all representations and views
// The distinction between views and representations is
@ -82,7 +81,7 @@ define(
}
}
function link($scope, element, attrs, ctrl, transclude) {
function link($scope, element, attrs) {
var activeRepresenters = representers.map(function (Representer) {
return new Representer($scope, element, attrs);
}),

View File

@ -31,7 +31,7 @@ define(
* @param {...Array.<{templateUrl: string}>} extensions arrays
* of template or template-like extensions
*/
function TemplatePrefetcher(templateLinker, extensions) {
function TemplatePrefetcher(templateLinker) {
Array.prototype.slice.apply(arguments, [1])
.reduce(function (a, b) {
return a.concat(b);

View File

@ -91,7 +91,7 @@ define(
});
// Whenever the touch event ends, 'isPressing' is false.
element.on('touchend', function (event) {
element.on('touchend', function () {
isPressing = false;
});
}

View File

@ -71,13 +71,6 @@ define(
}
}
function canCompose(domainObject, selectedObject){
return domainObject.getCapability("action").getActions({
key: 'compose',
selectedObject: selectedObject
}).length > 0;
}
function dragOver(e) {
//Refresh domain object on each dragOver to catch external
// updates to the model
@ -121,7 +114,7 @@ define(
// destination domain object's composition, and persist
// the change.
if (id) {
$q.when(action && action.perform()).then(function (result) {
$q.when(action && action.perform()).then(function () {
//Don't go into edit mode for folders
if (domainObjectType!=='folder') {
editableDomainObject.getCapability('action').perform('edit');