@@ -176,16 +176,6 @@ pub mod borrowck;
176176/// # Return value
177177///
178178/// The return value is used as the process return code. 0 on success, 101 on error.
179- #[ cfg( stage0) ]
180- pub fn start ( argc : int , argv : * * u8 , crate_map : * u8 , main : ~fn ( ) ) -> int {
181-
182- init ( argc, argv, crate_map) ;
183- let exit_code = run ( main) ;
184- cleanup ( ) ;
185-
186- return exit_code;
187- }
188- #[ cfg( not( stage0) ) ]
189179pub fn start ( argc : int , argv : * * u8 , main : ~fn ( ) ) -> int {
190180
191181 init ( argc, argv) ;
@@ -200,15 +190,6 @@ pub fn start(argc: int, argv: **u8, main: ~fn()) -> int {
200190///
201191/// This is appropriate for running code that must execute on the main thread,
202192/// such as the platform event loop and GUI.
203- #[ cfg( stage0) ]
204- pub fn start_on_main_thread ( argc : int , argv : * * u8 , crate_map : * u8 , main : ~fn ( ) ) -> int {
205- init ( argc, argv, crate_map) ;
206- let exit_code = run_on_main_thread ( main) ;
207- cleanup ( ) ;
208-
209- return exit_code;
210- }
211- #[ cfg( not( stage0) ) ]
212193pub fn start_on_main_thread ( argc : int , argv : * * u8 , main : ~fn ( ) ) -> int {
213194 init ( argc, argv) ;
214195 let exit_code = run_on_main_thread ( main) ;
@@ -222,17 +203,6 @@ pub fn start_on_main_thread(argc: int, argv: **u8, main: ~fn()) -> int {
222203/// Initializes global state, including frobbing
223204/// the crate's logging flags, registering GC
224205/// metadata, and storing the process arguments.
225- #[ cfg( stage0) ]
226- pub fn init ( argc : int , argv : * * u8 , crate_map : * u8 ) {
227- // XXX: Derefing these pointers is not safe.
228- // Need to propagate the unsafety to `start`.
229- unsafe {
230- args:: init ( argc, argv) ;
231- env:: init ( ) ;
232- logging:: init ( crate_map) ;
233- }
234- }
235- #[ cfg( not( stage0) ) ]
236206pub fn init ( argc : int , argv : * * u8 ) {
237207 // XXX: Derefing these pointers is not safe.
238208 // Need to propagate the unsafety to `start`.
0 commit comments