@@ -704,9 +704,6 @@ impl<'w, 's, T: Component> Iterator for RelationAccess<'w, 's, T> {
704
704
} ,
705
705
Either :: U ( target_iter) => {
706
706
let target = target_iter. next ( ) ?;
707
- // FIXME(Relationships) do we want `T None` to be yielded from a `Relation<T>` query
708
- // honestly there are a lot of places we need to think about this, for example the
709
- // add_relation_filter method takes `Entity` not `Option<Entity>` lol
710
707
match columns. 1 . get ( target) {
711
708
Some ( col) => unsafe {
712
709
let ptr = col. get_unchecked ( * current_idx) as * mut T ;
@@ -722,9 +719,6 @@ impl<'w, 's, T: Component> Iterator for RelationAccess<'w, 's, T> {
722
719
iter,
723
720
..
724
721
} => {
725
- // FIXME(Relationships) do we want `T None` to be yielded from a `Relation<T>` query
726
- // honestly there are a lot of places we need to think about this, for example the
727
- // add_relation_filter method takes `Entity` not `Option<Entity>` lol
728
722
let target = match iter {
729
723
Either :: T ( target_iter) => target_iter. next ( ) ?,
730
724
Either :: U ( target_iter) => Some ( * target_iter. next ( ) ?) ,
@@ -992,9 +986,6 @@ impl<'w, 's, T: Component> Iterator for RelationAccessMut<'w, 's, T> {
992
986
} ,
993
987
Either :: U ( target_iter) => {
994
988
let target = target_iter. next ( ) ?;
995
- // FIXME(Relationships) do we want `T None` to be yielded from a `Relation<T>` query
996
- // honestly there are a lot of places we need to think about this, for example the
997
- // add_relation_filter method takes `Entity` not `Option<Entity>` lol
998
989
match columns. 1 . get ( target) {
999
990
Some ( col) => unsafe {
1000
991
let ptr = col. get_unchecked ( * current_idx) as * mut T ;
@@ -1022,9 +1013,6 @@ impl<'w, 's, T: Component> Iterator for RelationAccessMut<'w, 's, T> {
1022
1013
change_tick,
1023
1014
..
1024
1015
} => {
1025
- // FIXME(Relationships) do we want `T None` to be yielded from a `Relation<T>` query
1026
- // honestly there are a lot of places we need to think about this, for example the
1027
- // add_relation_filter method takes `Entity` not `Option<Entity>` lol
1028
1016
let target = match iter {
1029
1017
Either :: T ( target_iter) => target_iter. next ( ) ?,
1030
1018
Either :: U ( target_iter) => Some ( * target_iter. next ( ) ?) ,
0 commit comments