From 3bdf669ddf52b603543cdcc0b97b430ee5ac0bbc Mon Sep 17 00:00:00 2001 From: vsavkin Date: Thu, 9 Apr 2015 07:28:41 -0700 Subject: [PATCH] cleanup(change_detection): removed dead code --- modules/angular2/change_detection.js | 2 +- .../src/change_detection/interfaces.js | 19 ------------------- .../change_detection/proto_change_detector.js | 2 +- modules/angular2/src/core/compiler/view.js | 2 +- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/modules/angular2/change_detection.js b/modules/angular2/change_detection.js index c2b650a6af..064ca33a77 100644 --- a/modules/angular2/change_detection.js +++ b/modules/angular2/change_detection.js @@ -7,7 +7,7 @@ export {Locals} from './src/change_detection/parser/locals'; export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} from './src/change_detection/exceptions'; -export {ProtoChangeDetector, ChangeRecord, ChangeDispatcher, ChangeDetector, ChangeDetection} from './src/change_detection/interfaces'; +export {ProtoChangeDetector, ChangeDispatcher, ChangeDetector, ChangeDetection} from './src/change_detection/interfaces'; export {CHECK_ONCE, CHECK_ALWAYS, DETACHED, CHECKED, ON_PUSH, DEFAULT} from './src/change_detection/constants'; export {DynamicProtoChangeDetector, JitProtoChangeDetector, BindingRecord} from './src/change_detection/proto_change_detector'; diff --git a/modules/angular2/src/change_detection/interfaces.js b/modules/angular2/src/change_detection/interfaces.js index d5d7d269a8..5ea6831bc0 100644 --- a/modules/angular2/src/change_detection/interfaces.js +++ b/modules/angular2/src/change_detection/interfaces.js @@ -16,25 +16,6 @@ export class ChangeDetection { } } -export class ChangeRecord { - bindingMemento:any; - change:any; - - constructor(bindingMemento, change) { - this.bindingMemento = bindingMemento; - this.change = change; - } - - //REMOVE IT - get currentValue() { - return this.change.currentValue; - } - - get previousValue() { - return this.change.previousValue; - } -} - export class ChangeDispatcher { invokeMementoFor(memento:any, value) {} } diff --git a/modules/angular2/src/change_detection/proto_change_detector.js b/modules/angular2/src/change_detection/proto_change_detector.js index 7be6b0540d..cb3b9db213 100644 --- a/modules/angular2/src/change_detection/proto_change_detector.js +++ b/modules/angular2/src/change_detection/proto_change_detector.js @@ -22,7 +22,7 @@ import { PrefixNot } from './parser/ast'; -import {ChangeRecord, ChangeDispatcher, ChangeDetector, ProtoChangeDetector} from './interfaces'; +import {ChangeDispatcher, ChangeDetector, ProtoChangeDetector} from './interfaces'; import {ChangeDetectionUtil} from './change_detection_util'; import {DynamicChangeDetector} from './dynamic_change_detector'; import {ChangeDetectorJITGenerator} from './change_detection_jit_generator'; diff --git a/modules/angular2/src/core/compiler/view.js b/modules/angular2/src/core/compiler/view.js index 3160532041..eb5bc9453f 100644 --- a/modules/angular2/src/core/compiler/view.js +++ b/modules/angular2/src/core/compiler/view.js @@ -1,6 +1,6 @@ import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection'; import {AST, Locals, ChangeDispatcher, ProtoChangeDetector, ChangeDetector, - ChangeRecord, BindingRecord, BindingPropagationConfig, uninitialized} from 'angular2/change_detection'; + BindingRecord, BindingPropagationConfig, uninitialized} from 'angular2/change_detection'; import {ProtoElementInjector, ElementInjector, PreBuiltObjects, DirectiveBinding} from './element_injector'; import {ElementBinder} from './element_binder';