@@ -15,7 +15,6 @@ use foundation::{
15
15
NSInteger , NSPoint , NSRange , NSRect , NSRectEdge , NSSize , NSTimeInterval , NSUInteger ,
16
16
} ;
17
17
use libc;
18
- use objc2:: encode:: { Encode , Encoding } ;
19
18
20
19
pub use core_graphics:: base:: CGFloat ;
21
20
pub use core_graphics:: geometry:: CGPoint ;
@@ -4581,13 +4580,6 @@ pub trait NSColorSpace: Sized {
4581
4580
unsafe fn localizedName ( self ) -> id ;
4582
4581
}
4583
4582
4584
- #[ repr( transparent) ]
4585
- struct CGColorSpaceRef ( * const c_void ) ;
4586
-
4587
- unsafe impl Encode for CGColorSpaceRef {
4588
- const ENCODING : Encoding = Encoding :: Pointer ( & Encoding :: Struct ( "CGColorSpace" , & [ ] ) ) ;
4589
- }
4590
-
4591
4583
impl NSColorSpace for id {
4592
4584
unsafe fn deviceRGBColorSpace ( _: Self ) -> id {
4593
4585
msg_send ! [ class!( NSColorSpace ) , deviceRGBColorSpace]
@@ -4630,12 +4622,14 @@ impl NSColorSpace for id {
4630
4622
msg_send ! [ class!( NSColorSpace ) , alloc]
4631
4623
}
4632
4624
4633
- unsafe fn initWithCGColorSpace_ ( self , cg_color_space : * const c_void ) -> id {
4634
- msg_send ! [ self , initWithCGColorSpace: CGColorSpaceRef ( cg_color_space) ]
4625
+ unsafe fn initWithCGColorSpace_ (
4626
+ self ,
4627
+ cg_color_space : * const c_void , /* (CGColorSpaceRef) */
4628
+ ) -> id {
4629
+ msg_send ! [ self , initWithCGColorSpace: cg_color_space]
4635
4630
}
4636
- unsafe fn CGColorSpace ( self ) -> * const c_void {
4637
- let res: CGColorSpaceRef = msg_send ! [ self , CGColorSpace ] ;
4638
- res. 0
4631
+ unsafe fn CGColorSpace ( self ) -> * const c_void /* (CGColorSpaceRef) */ {
4632
+ msg_send ! [ self , CGColorSpace ]
4639
4633
}
4640
4634
unsafe fn localizedName ( self ) -> id {
4641
4635
msg_send ! [ self , localizedName]
0 commit comments