1
1
// Take a look at the license at the top of the repository in the LICENSE file.
2
2
3
3
#[ cfg( unix) ]
4
- use std:: os:: unix:: io:: { AsRawFd , FromRawFd , IntoRawFd , RawFd } ;
4
+ use std:: os:: unix:: io:: { AsRawFd , IntoRawFd , RawFd } ;
5
5
6
6
use glib:: { prelude:: * , translate:: * } ;
7
7
#[ cfg( all( not( unix) , feature = "dox" ) ) ]
8
- use socket:: { AsRawFd , FromRawFd , IntoRawFd , RawFd } ;
8
+ use socket:: { AsRawFd , IntoRawFd , RawFd } ;
9
9
10
10
use crate :: { OutputStream , UnixOutputStream } ;
11
11
@@ -44,10 +44,6 @@ impl AsRawFd for UnixOutputStream {
44
44
}
45
45
46
46
pub trait UnixOutputStreamExtManual : Sized {
47
- #[ doc( alias = "g_unix_output_stream_get_fd" ) ]
48
- #[ doc( alias = "get_fd" ) ]
49
- fn fd < T : FromRawFd > ( & self ) -> T ;
50
-
51
47
// rustdoc-stripper-ignore-next
52
48
/// Sets whether the fd of this stream will be closed when the stream is closed.
53
49
///
@@ -59,14 +55,6 @@ pub trait UnixOutputStreamExtManual: Sized {
59
55
}
60
56
61
57
impl < O : IsA < UnixOutputStream > > UnixOutputStreamExtManual for O {
62
- fn fd < T : FromRawFd > ( & self ) -> T {
63
- unsafe {
64
- T :: from_raw_fd ( ffi:: g_unix_output_stream_get_fd (
65
- self . as_ref ( ) . to_glib_none ( ) . 0 ,
66
- ) )
67
- }
68
- }
69
-
70
58
unsafe fn set_close_fd ( & self , close_fd : bool ) {
71
59
ffi:: g_unix_output_stream_set_close_fd (
72
60
self . as_ref ( ) . to_glib_none ( ) . 0 ,
0 commit comments