From f8c070c5e4d5de9b45ffa30840ec4a0894f78e5e Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 3 Dec 2014 11:03:52 +0100 Subject: [PATCH] perf(ProtoRecord): remove the unused prev field --- modules/change_detection/src/record.js | 6 ++---- modules/change_detection/src/record_range.js | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/change_detection/src/record.js b/modules/change_detection/src/record.js index 464ca3e7c9..b05e1277ac 100644 --- a/modules/change_detection/src/record.js +++ b/modules/change_detection/src/record.js @@ -33,10 +33,9 @@ export class ProtoRecord { funcOrValue:any; arity:int; name:string; - dest; - + dest:any; next:ProtoRecord; - prev:ProtoRecord; + recordInConstruction:Record; constructor(recordRange:ProtoRecordRange, mode:int, @@ -53,7 +52,6 @@ export class ProtoRecord { this.dest = dest; this.next = null; - this.prev = null; // The concrete Record instantiated from this ProtoRecord this.recordInConstruction = null; } diff --git a/modules/change_detection/src/record_range.js b/modules/change_detection/src/record_range.js index e97dd702d3..e01eb32ff9 100644 --- a/modules/change_detection/src/record_range.js +++ b/modules/change_detection/src/record_range.js @@ -70,7 +70,6 @@ export class ProtoRecordRange { this.headRecord = head; } else { this.tailRecord.next = head; - head.prev = this.tailRecord; } this.tailRecord = tail; } @@ -514,7 +513,6 @@ class ProtoRecordCreator { this.headRecord = this.tailRecord = protoRecord; } else { this.tailRecord.next = protoRecord; - protoRecord.prev = this.tailRecord; this.tailRecord = protoRecord; } }