We no longer use stores

This code is from when we were using libkpod and kept track of stores.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #183
Approved by: TomSweeneyRedHat
This commit is contained in:
Daniel J Walsh
2018-01-03 16:11:17 -05:00
committed by Atomic Bot
parent 04593b1591
commit 137e5c8ffd
2 changed files with 0 additions and 19 deletions

View File

@@ -98,17 +98,11 @@ func main() {
}
app.After = func(*cli.Context) error {
// called by Run() when the command handler succeeds
shutdownStores()
if cpuProfile {
pprof.StopCPUProfile()
}
return nil
}
cli.OsExiter = func(code int) {
// called by Run() when the command fails, bypassing After()
shutdownStores()
os.Exit(code)
}
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "cni-config-dir",
@@ -158,6 +152,5 @@ func main() {
} else {
fmt.Fprintln(os.Stderr, err.Error())
}
cli.OsExiter(1)
}
}