Skip to content

Commit 1c7c0ba

Browse files
committed
fix(scope): remove deprecation warning for scope.watch with context
This was added in e8a5ce7. We will be looking into this some more.
1 parent 264757b commit 1c7c0ba

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/core/scope.dart

-12
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ class Scope {
218218

219219
// TODO(deboer): Temporary shim until all uses are fixed.
220220
if (context != null) {
221-
assert(() {
222-
try {
223-
throw [];
224-
} catch (e, s) {
225-
var msg = "WARNING: The Scope.watch's context parameter "
226-
"is deprecated.\nScope.watch was called from:\n$s";
227-
_oneTimeWarnings.putIfAbsent(msg, () => print(msg));
228-
}
229-
return true;
230-
});
231-
232221
// Create a child scope instead.
233222
return createChild(context)
234223
.watch(expression, reactionFn,
@@ -275,7 +264,6 @@ class Scope {
275264
WatchGroup group = canChangeModel ? _readWriteGroup : _readOnlyGroup;
276265
return group.watch(ast, reactionFn);
277266
}
278-
static Map _oneTimeWarnings = new HashMap();
279267

280268
dynamic eval(expression, [Map locals]) {
281269
assert(isAttached);

0 commit comments

Comments
 (0)