refactor(ipfs2/main) rm exit
Brian Tiger Chow committed
Nov 10, 2014 at 23:37 UTC
8b14012bba2210e5c07a7e3554c17881effbef27
1 file changed
-14
cmd/ipfs2/main.go
-14
@@ -304,17 +304,3 @@ func handleInterrupt() {
304
}
305
}()
306
}
307
-
308
-func exit(code int) {
309
- if u.Debug {
310
- pprof.StopCPUProfile()
311
- ofi.Close()
312
-
313
- err := writeHeapProfileToFile()
314
- if err != nil {
315
- log.Critical(err)
316
- }
317
- }
318
-
319
- os.Exit(code)
320
-}