From b63293d95070d89ac37090e1ca4a49ab2a309eca Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 6 Dec 2016 13:42:21 +0100 Subject: [PATCH] remove unnecessary code --- common/serial/interface.go | 9 --------- testing/assert/pointer.go | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 common/serial/interface.go diff --git a/common/serial/interface.go b/common/serial/interface.go deleted file mode 100644 index a032dbeb3..000000000 --- a/common/serial/interface.go +++ /dev/null @@ -1,9 +0,0 @@ -package serial - -import ( - "fmt" -) - -func PointerToString(value interface{}) string { - return fmt.Sprint(value) -} diff --git a/testing/assert/pointer.go b/testing/assert/pointer.go index c18e14b60..1b3013a22 100644 --- a/testing/assert/pointer.go +++ b/testing/assert/pointer.go @@ -10,7 +10,7 @@ func (v *Assert) Pointer(value interface{}) *PointerSubject { return &PointerSubject{ Subject: Subject{ a: v, - disp: serial.PointerToString(value), + disp: serial.ToString(value), }, value: value, }