Skip to content

Commit 0a767bd

Browse files
committed
Removed unneeded ResRef
1 parent da59e5d commit 0a767bd

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

crates/bevy_ecs/src/change_detection.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -357,36 +357,6 @@ where
357357
change_detection_impl!(Ref<'a, T>, T,);
358358
impl_debug!(Ref<'a, T>,);
359359

360-
361-
/// Shared borrow of a [`Resource`] with change tracking metadata.
362-
///
363-
/// See the [`Resource`] documentation for usage.
364-
///
365-
/// # Panics
366-
///
367-
/// Panics when used as a [`SystemParam`](crate::system::SystemParam) if the resource does not exist.
368-
///
369-
/// Use `Option<ResRef<T>>` instead if the resource might not always exist.
370-
pub struct ResRef<'a, T: ?Sized + Resource> {
371-
pub(crate) value: &'a T,
372-
pub(crate) ticks: Ticks<'a>,
373-
}
374-
change_detection_impl!(ResRef<'a, T>, T, Resource);
375-
376-
impl<'w, 'a, T: Resource> IntoIterator for &'a ResRef<'w, T>
377-
where
378-
&'a T: IntoIterator,
379-
{
380-
type Item = <&'a T as IntoIterator>::Item;
381-
type IntoIter = <&'a T as IntoIterator>::IntoIter;
382-
383-
fn into_iter(self) -> Self::IntoIter {
384-
self.value.into_iter()
385-
}
386-
}
387-
388-
impl_debug!(ResRef<'a, T>, Resource);
389-
390360
/// Unique mutable borrow of a [`Resource`].
391361
///
392362
/// See the [`Resource`] documentation for usage.

0 commit comments

Comments
 (0)