Dead code

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot
2015-12-30 12:19:10 +01:00
parent 6f53a0b9ed
commit 2b96c0656d
4 changed files with 3 additions and 25 deletions

View File

@@ -1,12 +1,12 @@
package commands
import (
"errors"
"testing"
"bytes"
"github.com/docker/machine/commands/commandstest"
"github.com/docker/machine/drivers/vmwarevsphere/errors"
"github.com/docker/machine/libmachine/host"
"github.com/docker/machine/libmachine/libmachinetest"
"github.com/docker/machine/libmachine/mcndockerclient"

View File

@@ -1,9 +1,9 @@
package virtualbox
import (
"errors"
"testing"
"github.com/docker/machine/drivers/vmwarevsphere/errors"
"github.com/stretchr/testify/assert"
)

View File

@@ -1,9 +1,9 @@
package virtualbox
import (
"errors"
"testing"
"github.com/docker/machine/drivers/vmwarevsphere/errors"
"github.com/stretchr/testify/assert"
)

View File

@@ -1,22 +0,0 @@
/*
* Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
*/
package errors
import (
original "errors"
"fmt"
)
func New(message string) error {
return original.New(message)
}
func NewWithFmt(message string, args ...interface{}) error {
return original.New(fmt.Sprintf(message, args...))
}
func NewWithError(message string, err error) error {
return NewWithFmt("%s: %s", message, err.Error())
}