@@ -59,8 +59,6 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
59
59
60
60
/** [ChangeDetector] used for field watching */
61
61
final ChangeDetectorGroup <_Handler > _changeDetector;
62
- /** A cache for sharing sub expression watching. Watching `a` and `a.b` will
63
- * watch `a` only once. */
64
62
final RootWatchGroup _rootGroup;
65
63
66
64
/// STATS: Number of field watchers which are in use.
@@ -277,9 +275,8 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
277
275
/**
278
276
* Create a new child [WatchGroup] .
279
277
*
280
- * - [context] if present the the child [WatchGroup] expressions will evaluate
281
- * against the new [context] . If not present than child expressions will
282
- * evaluate on same context allowing the reuse of the expression cache.
278
+ * - [context] if present the the child [WatchGroup] expressions will evaluate against the new
279
+ * [context] . If not present than child expressions will evaluate on same context.
283
280
*/
284
281
WatchGroup newGroup ([Object context]) {
285
282
_EvalWatchRecord prev = _childWatchGroupTail._evalWatchTail;
@@ -576,8 +573,6 @@ abstract class _Handler implements _LinkedList, _LinkedListItem, _WatchList {
576
573
bool release () {
577
574
if (_WatchList ._isEmpty (this ) && _LinkedList ._isEmpty (this )) {
578
575
_releaseWatch ();
579
- // Remove ourselves from cache, or else new registrations will go to us,
580
- // but we are dead
581
576
582
577
if (forwardingHandler != null ) {
583
578
// TODO(misko): why do we need this check?
0 commit comments