File tree 2 files changed +0
-14
lines changed 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,6 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
14
14
imp:: init ( argc, argv)
15
15
}
16
16
17
- /// One-time global cleanup.
18
- pub unsafe fn cleanup ( ) {
19
- imp:: cleanup ( )
20
- }
21
-
22
17
/// Returns the command line arguments
23
18
pub fn args ( ) -> Args {
24
19
imp:: args ( )
@@ -127,12 +122,6 @@ mod imp {
127
122
init_wrapper
128
123
} ;
129
124
130
- pub unsafe fn cleanup ( ) {
131
- let _guard = LOCK . lock ( ) ;
132
- ARGC . store ( 0 , Ordering :: Relaxed ) ;
133
- ARGV . store ( ptr:: null_mut ( ) , Ordering :: Relaxed ) ;
134
- }
135
-
136
125
pub fn args ( ) -> Args {
137
126
Args { iter : clone ( ) . into_iter ( ) }
138
127
}
@@ -159,8 +148,6 @@ mod imp {
159
148
160
149
pub unsafe fn init ( _argc : isize , _argv : * const * const u8 ) { }
161
150
162
- pub fn cleanup ( ) { }
163
-
164
151
#[ cfg( target_os = "macos" ) ]
165
152
pub fn args ( ) -> Args {
166
153
use crate :: os:: unix:: prelude:: * ;
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
123
123
// SAFETY: must be called only once during runtime cleanup.
124
124
// NOTE: this is not guaranteed to run, for example when the program aborts.
125
125
pub unsafe fn cleanup ( ) {
126
- args:: cleanup ( ) ;
127
126
stack_overflow:: cleanup ( ) ;
128
127
}
129
128
You can’t perform that action at this time.
0 commit comments