Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed Jun 14, 2024
1 parent f2461a5 commit 49506c3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/realm_dart/lib/src/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ class ListNotificationsController<T extends Object?> extends NotificationsContro
ListNotificationsController(this.list, [List<String>? keyPaths]) {
if (keyPaths != null) {
this.keyPaths = keyPaths;

list.realm.handle.verifyKeyPath(keyPaths, list._metadata?.classKey);
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/realm_dart/lib/src/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ class MapNotificationsController<T extends Object?> extends NotificationsControl
MapNotificationsController(this.map, [List<String>? keyPaths]) {
if (keyPaths != null) {
this.keyPaths = keyPaths;

map.realm.handle.verifyKeyPath(keyPaths, map._metadata?.classKey);
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/realm_dart/lib/src/results.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ class ResultsNotificationsController<T extends Object?> extends NotificationsCon
ResultsNotificationsController(this.results, [List<String>? keyPaths]) {
if (keyPaths != null) {
this.keyPaths = keyPaths;

results.realm.handle.verifyKeyPath(keyPaths, results._metadata?.classKey);
}
}
Expand Down
2 changes: 0 additions & 2 deletions packages/realm_dart/lib/src/set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,9 @@ class RealmSetNotificationsController<T extends Object?> extends NotificationsCo
late final StreamController<RealmSetChanges<T>> streamController;
List<String>? keyPaths;

//TODO Maybe this can be moved to the NotificationController
RealmSetNotificationsController(this.set, [List<String>? keyPaths]) {
if (keyPaths != null) {
this.keyPaths = keyPaths;

set.realm.handle.verifyKeyPath(keyPaths, set._metadata?.classKey);
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/realm_dart/test/list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 49506c3

Please sign in to comment.