From 4f8b3242ca4b266e653776b128ece193877a5c6c Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 29 May 2020 15:17:31 -0400 Subject: [PATCH] Drop commented out code from ptimg/main.go. Tycho had seen this and mentioned in review, but it got merged before it got addressed. --- ptimg/main.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/ptimg/main.go b/ptimg/main.go index 519f5c5..8b1db07 100644 --- a/ptimg/main.go +++ b/ptimg/main.go @@ -348,32 +348,6 @@ func connectNBD(fname string, imgFormat string) (func() error, string, error) { return nilFunc, "", fmt.Errorf("did not find available nbd device") } -/* -func showCommand(args ...string) error { - out, err, rc := runCommandWithOutputErrorRc(args...) - cmdstr := cmdString(args, out, err, rc) - fmt.Fprint(os.Stderr, cmdstr) - - if rc == 0 { - return nil - } - - return errors.New(cmdstr) -} - -func showCommandWithStdin(input string, args ...string) error { - out, err, rc := runCommandWithOutputErrorRcStdin(input, args...) - cmdstr := cmdString(args, out, err, rc) - fmt.Fprint(os.Stderr, cmdstr) - - if rc == 0 { - return nil - } - - return errors.New(cmdstr) -} -*/ - func main() { app := &cli.App{ Name: "ptimg",