Skip to content

Commit b0d265a

Browse files
committed
Remove Dead code
Signed-off-by: David Gageot <david@gageot.net>
1 parent 7442ccc commit b0d265a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

libmachine/mcnutils/utils.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@ package mcnutils
33
import (
44
"crypto/rand"
55
"encoding/hex"
6-
"encoding/json"
76
"fmt"
87
"io"
98
"os"
109
"runtime"
1110
"strconv"
1211
"time"
13-
14-
"github.com/docker/machine/libmachine/log"
1512
)
1613

1714
// GetHomeDir returns the home directory
@@ -97,16 +94,6 @@ func WaitFor(f func() bool) error {
9794
return WaitForSpecific(f, 60, 3*time.Second)
9895
}
9996

100-
func DumpVal(vals ...interface{}) {
101-
for _, val := range vals {
102-
prettyJSON, err := json.MarshalIndent(val, "", " ")
103-
if err != nil {
104-
log.Warn(err)
105-
}
106-
log.Debug(string(prettyJSON))
107-
}
108-
}
109-
11097
// TruncateID returns a shorten id
11198
// Following two functions are from github.com/docker/docker/utils module. It
11299
// was way overkill to include the whole module, so we just have these bits

0 commit comments

Comments
 (0)