From 4830ea11a6041d1081a7e1efcc7a4430f0602ac0 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Mon, 20 Oct 2014 23:22:19 -0700 Subject: [PATCH] refactor(*): removing unused vars --- src/ng/anchorScroll.js | 1 - src/ng/compile.js | 4 ---- src/ng/directive/input.js | 14 -------------- src/ng/directive/ngClass.js | 2 +- src/ng/directive/select.js | 4 +--- src/ng/templateRequest.js | 1 - 6 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/ng/anchorScroll.js b/src/ng/anchorScroll.js index 8989d3bec06d..5a10e235045f 100644 --- a/src/ng/anchorScroll.js +++ b/src/ng/anchorScroll.js @@ -168,7 +168,6 @@ function $AnchorScrollProvider() { */ this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) { var document = $window.document; - var scrollScheduled = false; // Helper function to get first anchor from a NodeList // (using `Array#some()` instead of `angular#forEach()` since it's more performant diff --git a/src/ng/compile.js b/src/ng/compile.js index b882b826388e..16872641bc9e 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -963,7 +963,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { booleanKey = getBooleanAttrName(node, key), aliasedKey = getAliasedAttrName(node, key), observer = key, - normalizedVal, nodeName; if (booleanKey) { @@ -1438,7 +1437,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { var nodes = []; var depth = 0; if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) { - var startNode = node; do { if (!node) { throw $compileMinErr('uterdir', @@ -1828,8 +1826,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { } if (newIsolateScopeDirective) { - var LOCAL_REGEXP = /^\s*([@=&])(\??)\s*(\w*)\s*$/; - compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective || templateDirective === newIsolateScopeDirective.$$originalDirective))); compile.$$addScopeClass($element, true); diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index b6ec372c6e1c..db514ec17396 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -918,19 +918,6 @@ var inputType = { 'file': noop }; -function testFlags(validity, flags) { - var i, flag; - if (flags) { - for (i=0; i