Skip to content

Commit 984ff9b

Browse files
committed
cleanup(view): remove unused code
1 parent 33b47bd commit 984ff9b

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

modules/core/src/compiler/view.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class View {
3131
/// When the view is part of render tree, the DocumentFragment is empty, which is why we need
3232
/// to keep track of the nodes.
3333
nodes:List<Node>;
34-
onChangeDispatcher:OnChangeDispatcher;
3534
componentChildViews: List<View>;
3635
viewPorts: List<ViewPort>;
3736
preBuiltObjects: List<PreBuiltObjects>;
@@ -45,7 +44,6 @@ export class View {
4544
this.nodes = nodes;
4645
this.elementInjectors = elementInjectors;
4746
this.rootElementInjectors = rootElementInjectors;
48-
this.onChangeDispatcher = null;
4947
this.textNodes = textNodes;
5048
this.bindElements = bindElements;
5149
this.recordRange = protoRecordRange.instantiate(this, MapWrapper.create());
@@ -555,24 +553,3 @@ class PropertyUpdate {
555553
this.previousValue = previousValue;
556554
}
557555
}
558-
559-
560-
//TODO(tbosch): I don't like to have done be called from a different place than notify
561-
// notify is called by change detection, but done is called by our wrapper on detect changes.
562-
export class OnChangeDispatcher {
563-
564-
_lastView:View;
565-
_lastTarget:DirectivePropertyMemento;
566-
constructor() {
567-
this._lastView = null;
568-
this._lastTarget = null;
569-
}
570-
571-
notify(view:View, eTarget:DirectivePropertyMemento) {
572-
573-
}
574-
575-
done() {
576-
577-
}
578-
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
import {FIELD} from 'facade/lang';
2-
import {OnChangeDispatcher} from '../compiler/view';
32
import {ChangeDetector} from 'change_detection/change_detector';
43

54
export class LifeCycle {
6-
75
_changeDetector:ChangeDetector;
8-
_onChangeDispatcher:OnChangeDispatcher;
96
constructor() {
107
this._changeDetector = null;
11-
this._onChangeDispatcher = null;
128
}
139

1410
digest() {
1511
_changeDetector.detectChanges();
16-
_onChangeDispatcher.done();
1712
}
1813
}

0 commit comments

Comments
 (0)