From 984ff9bf1b673e86e6316ca15655116f2d93840b Mon Sep 17 00:00:00 2001 From: vsavkin Date: Fri, 5 Dec 2014 19:01:37 -0800 Subject: [PATCH] cleanup(view): remove unused code --- modules/core/src/compiler/view.js | 23 ----------------------- modules/core/src/life_cycle/life_cycle.js | 5 ----- 2 files changed, 28 deletions(-) diff --git a/modules/core/src/compiler/view.js b/modules/core/src/compiler/view.js index c1a6e74848..0ecb53cf75 100644 --- a/modules/core/src/compiler/view.js +++ b/modules/core/src/compiler/view.js @@ -31,7 +31,6 @@ export class View { /// When the view is part of render tree, the DocumentFragment is empty, which is why we need /// to keep track of the nodes. nodes:List; - onChangeDispatcher:OnChangeDispatcher; componentChildViews: List; viewPorts: List; preBuiltObjects: List; @@ -45,7 +44,6 @@ export class View { this.nodes = nodes; this.elementInjectors = elementInjectors; this.rootElementInjectors = rootElementInjectors; - this.onChangeDispatcher = null; this.textNodes = textNodes; this.bindElements = bindElements; this.recordRange = protoRecordRange.instantiate(this, MapWrapper.create()); @@ -555,24 +553,3 @@ class PropertyUpdate { this.previousValue = previousValue; } } - - -//TODO(tbosch): I don't like to have done be called from a different place than notify -// notify is called by change detection, but done is called by our wrapper on detect changes. -export class OnChangeDispatcher { - - _lastView:View; - _lastTarget:DirectivePropertyMemento; - constructor() { - this._lastView = null; - this._lastTarget = null; - } - - notify(view:View, eTarget:DirectivePropertyMemento) { - - } - - done() { - - } -} diff --git a/modules/core/src/life_cycle/life_cycle.js b/modules/core/src/life_cycle/life_cycle.js index fb6388c4c8..70bfa63112 100644 --- a/modules/core/src/life_cycle/life_cycle.js +++ b/modules/core/src/life_cycle/life_cycle.js @@ -1,18 +1,13 @@ import {FIELD} from 'facade/lang'; -import {OnChangeDispatcher} from '../compiler/view'; import {ChangeDetector} from 'change_detection/change_detector'; export class LifeCycle { - _changeDetector:ChangeDetector; - _onChangeDispatcher:OnChangeDispatcher; constructor() { this._changeDetector = null; - this._onChangeDispatcher = null; } digest() { _changeDetector.detectChanges(); - _onChangeDispatcher.done(); } } \ No newline at end of file