From 8a604114efc2b8aeb4d66c308e3a19590b1d7670 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Fri, 24 Aug 2018 20:43:51 -0700 Subject: [PATCH] remove unused code --- common/bootcommand/pc_xt_driver_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/common/bootcommand/pc_xt_driver_test.go b/common/bootcommand/pc_xt_driver_test.go index ab6ef4358..c6216a3ea 100644 --- a/common/bootcommand/pc_xt_driver_test.go +++ b/common/bootcommand/pc_xt_driver_test.go @@ -124,19 +124,11 @@ func Test_flushes(t *testing.T) { } func Test_KeyIntervalNotGiven(t *testing.T) { - sendCodes := func(c []string) error { - codes = c - return nil - } - d := NewPCXTDriver(sendCodes, -1, time.Duration(0)) + d := NewPCXTDriver(nil, -1, time.Duration(0)) assert.Equal(t, d.interval, time.Duration(100)*time.Millisecond) } func Test_KeyIntervalGiven(t *testing.T) { - sendCodes := func(c []string) error { - codes = c - return nil - } - d := NewPCXTDriver(sendCodes, -1, time.Duration(5000)*time.Millisecond) + d := NewPCXTDriver(nil, -1, time.Duration(5000)*time.Millisecond) assert.Equal(t, d.interval, time.Duration(5000)*time.Millisecond) }