@@ -14,9 +14,7 @@ use std::marker::PhantomData;
14
14
use std:: ops:: Deref ;
15
15
use std:: ptr:: NonNull ;
16
16
17
- #[ cfg( feature = "nativescript" ) ]
18
17
use crate :: export:: { Instance , NativeClass , RefInstance } ;
19
-
20
18
use crate :: private:: { get_api, ManuallyManagedClassPlaceholder , ReferenceCountedClassPlaceholder } ;
21
19
use crate :: sys;
22
20
use bounds:: { AssumeSafeLifetime , LifetimeConstraint , PtrWrapper , RefKindSpec } ;
@@ -488,7 +486,6 @@ where
488
486
///
489
487
/// The resulting `Instance` is not necessarily safe to use directly.
490
488
#[ inline]
491
- #[ cfg( feature = "nativescript" ) ]
492
489
pub fn cast_instance < C > ( self ) -> Option < Instance < C , Access > >
493
490
where
494
491
C : NativeClass < Base = T > ,
@@ -502,7 +499,6 @@ where
502
499
///
503
500
/// Returns `Err(self)` if the cast failed.
504
501
#[ inline]
505
- #[ cfg( feature = "nativescript" ) ]
506
502
pub fn try_cast_instance < C > ( self ) -> Result < Instance < C , Access > , Self >
507
503
where
508
504
C : NativeClass < Base = T > ,
@@ -934,7 +930,6 @@ impl<'a, T: GodotObject, Access: ThreadAccess> TRef<'a, T, Access> {
934
930
935
931
/// Convenience method to downcast to `RefInstance` where `self` is the base object.
936
932
#[ inline]
937
- #[ cfg( feature = "nativescript" ) ]
938
933
pub fn cast_instance < C > ( self ) -> Option < RefInstance < ' a , C , Access > >
939
934
where
940
935
C : NativeClass < Base = T > ,
0 commit comments