From 49506c3701d4508dc66c67b92c8566592e51f191 Mon Sep 17 00:00:00 2001 From: Ferdinando Papale <4850119+papafe@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:59:45 +0200 Subject: [PATCH] Small fix --- packages/realm_dart/lib/src/list.dart | 1 - packages/realm_dart/lib/src/map.dart | 1 - packages/realm_dart/lib/src/results.dart | 1 - packages/realm_dart/lib/src/set.dart | 2 -- packages/realm_dart/test/list_test.dart | 1 - 5 files changed, 6 deletions(-) diff --git a/packages/realm_dart/lib/src/list.dart b/packages/realm_dart/lib/src/list.dart index 186a6967f..f7658bf8e 100644 --- a/packages/realm_dart/lib/src/list.dart +++ b/packages/realm_dart/lib/src/list.dart @@ -342,7 +342,6 @@ class ListNotificationsController extends NotificationsContro ListNotificationsController(this.list, [List? keyPaths]) { if (keyPaths != null) { this.keyPaths = keyPaths; - list.realm.handle.verifyKeyPath(keyPaths, list._metadata?.classKey); } } diff --git a/packages/realm_dart/lib/src/map.dart b/packages/realm_dart/lib/src/map.dart index b2eb2297e..5c5dee62e 100644 --- a/packages/realm_dart/lib/src/map.dart +++ b/packages/realm_dart/lib/src/map.dart @@ -292,7 +292,6 @@ class MapNotificationsController extends NotificationsControl MapNotificationsController(this.map, [List? keyPaths]) { if (keyPaths != null) { this.keyPaths = keyPaths; - map.realm.handle.verifyKeyPath(keyPaths, map._metadata?.classKey); } } diff --git a/packages/realm_dart/lib/src/results.dart b/packages/realm_dart/lib/src/results.dart index 29ed1b4b7..aea552989 100644 --- a/packages/realm_dart/lib/src/results.dart +++ b/packages/realm_dart/lib/src/results.dart @@ -314,7 +314,6 @@ class ResultsNotificationsController extends NotificationsCon ResultsNotificationsController(this.results, [List? keyPaths]) { if (keyPaths != null) { this.keyPaths = keyPaths; - results.realm.handle.verifyKeyPath(keyPaths, results._metadata?.classKey); } } diff --git a/packages/realm_dart/lib/src/set.dart b/packages/realm_dart/lib/src/set.dart index 372107481..67855351a 100644 --- a/packages/realm_dart/lib/src/set.dart +++ b/packages/realm_dart/lib/src/set.dart @@ -351,11 +351,9 @@ class RealmSetNotificationsController extends NotificationsCo late final StreamController> streamController; List? keyPaths; - //TODO Maybe this can be moved to the NotificationController RealmSetNotificationsController(this.set, [List? keyPaths]) { if (keyPaths != null) { this.keyPaths = keyPaths; - set.realm.handle.verifyKeyPath(keyPaths, set._metadata?.classKey); } } diff --git a/packages/realm_dart/test/list_test.dart b/packages/realm_dart/test/list_test.dart index 9ba3b177c..f4d12df49 100644 --- a/packages/realm_dart/test/list_test.dart +++ b/packages/realm_dart/test/list_test.dart @@ -12,7 +12,6 @@ import 'package:test/test.dart' hide test, throws; import 'package:realm_dart/realm.dart'; import 'test.dart'; -//TODO This file is called list_test, while the one for maps and sets are called realm_map/set_test void main() { setupTests();