Skip to content

Commit 0703ee5

Browse files
committed
fix(Dart1.8): fix analyzer warnings
1 parent 3e57189 commit 0703ee5

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

modules/change_detection/src/parser/lexer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ class _Scanner {
385385

386386
var last:string = input.substring(marker, this.index);
387387
this.advance(); // Skip terminating quote.
388-
var str:string = input.substring(start, this.index);
389388

390389
// Compute the unescaped string value.
391390
var unescaped:string = last;

modules/core/test/compiler/compiler_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {Lexer} from 'change_detection/parser/lexer';
1717

1818
export function main() {
1919
describe('compiler', function() {
20-
var compiler, reader;
20+
var reader;
2121

2222
beforeEach( () => {
2323
reader = new DirectiveMetadataReader();

modules/core/test/compiler/pipeline/pipeline_spec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ import {CompileControl} from 'core/compiler/pipeline/compile_control';
1010

1111
export function main() {
1212
describe('compile_pipeline', () => {
13-
var logs, pipeline, loggingStep;
14-
15-
beforeEach( () => {
16-
logs = [];
17-
loggingStep = new LoggingStep(logs);
18-
});
19-
2013
it('should walk the tree in depth first order including template contents', () => {
2114
var element = createElement('<div id="1"><template id="2"><span id="3"></span></template></div>');
2215

modules/core/test/compiler/view_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function main() {
171171
});
172172

173173
describe('recurse over child component views', () => {
174-
var view, ctx;
174+
var ctx;
175175

176176
function createComponentWithSubPV(subProtoView) {
177177
var pv = new ProtoView(createElement('<cmp class="ng-binding"></cmp>'), new ProtoRecordRange());
@@ -209,7 +209,7 @@ export function main() {
209209
() => {
210210
var subpv = new ProtoView(
211211
createElement('<div dec class="ng-binding">hello shadow dom</div>'), new ProtoRecordRange());
212-
var subBinder = subpv.bindElement(
212+
subpv.bindElement(
213213
new ProtoElementInjector(null, 0, [ServiceDependentDecorator]));
214214
var pv = createComponentWithSubPV(subpv);
215215

@@ -227,7 +227,7 @@ export function main() {
227227
});
228228

229229
describe('recurse over child templateViews', () => {
230-
var ctx, view, cd;
230+
var ctx, view;
231231
function createView(protoView) {
232232
ctx = new MyEvaluationContext();
233233
view = protoView.instantiate(ctx, null, null);
@@ -310,7 +310,7 @@ export function main() {
310310

311311
it('should inject the protoView into the shadowDom', () => {
312312
var rootProtoView = ProtoView.createRootProtoView(pv, el, someComponentDirective);
313-
var view = rootProtoView.instantiate(null, new Injector([]), null, true);
313+
rootProtoView.instantiate(null, new Injector([]), null, true);
314314
expect(el.shadowRoot.childNodes[0].childNodes[0].nodeValue).toEqual('hi');
315315
});
316316
});

0 commit comments

Comments
 (0)