From 2b96c0656dcf22f19f06c0166eeef3c025b6c4e7 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 30 Dec 2015 12:19:10 +0100 Subject: [PATCH] Dead code Signed-off-by: David Gageot --- commands/version_test.go | 2 +- drivers/virtualbox/disk_test.go | 2 +- drivers/virtualbox/vm_test.go | 2 +- drivers/vmwarevsphere/errors/errors.go | 22 ---------------------- 4 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 drivers/vmwarevsphere/errors/errors.go diff --git a/commands/version_test.go b/commands/version_test.go index 7d593f09..67a57c57 100644 --- a/commands/version_test.go +++ b/commands/version_test.go @@ -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" diff --git a/drivers/virtualbox/disk_test.go b/drivers/virtualbox/disk_test.go index 7f520056..b6c59195 100644 --- a/drivers/virtualbox/disk_test.go +++ b/drivers/virtualbox/disk_test.go @@ -1,9 +1,9 @@ package virtualbox import ( + "errors" "testing" - "github.com/docker/machine/drivers/vmwarevsphere/errors" "github.com/stretchr/testify/assert" ) diff --git a/drivers/virtualbox/vm_test.go b/drivers/virtualbox/vm_test.go index ba732eef..a90ffbf1 100644 --- a/drivers/virtualbox/vm_test.go +++ b/drivers/virtualbox/vm_test.go @@ -1,9 +1,9 @@ package virtualbox import ( + "errors" "testing" - "github.com/docker/machine/drivers/vmwarevsphere/errors" "github.com/stretchr/testify/assert" ) diff --git a/drivers/vmwarevsphere/errors/errors.go b/drivers/vmwarevsphere/errors/errors.go deleted file mode 100644 index 24112753..00000000 --- a/drivers/vmwarevsphere/errors/errors.go +++ /dev/null @@ -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()) -}