@@ -357,36 +357,6 @@ where
357
357
change_detection_impl ! ( Ref <' a, T >, T , ) ;
358
358
impl_debug ! ( Ref <' a, T >, ) ;
359
359
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
-
390
360
/// Unique mutable borrow of a [`Resource`].
391
361
///
392
362
/// See the [`Resource`] documentation for usage.
0 commit comments