Skip to content

Commit

Permalink
Merge pull request #82 from smoser/fix/ptimg-drop-commented-code
Browse files Browse the repository at this point in the history
Drop commented out code from ptimg/main.go.
  • Loading branch information
tych0 authored May 29, 2020
2 parents d69d4a3 + 4f8b324 commit 946bd62
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions ptimg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 946bd62

Please sign in to comment.