From d6781a478ac3014d5ca9f66a98c7b14d749549d3 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 13 May 2017 14:10:01 +0200 Subject: [PATCH] i2c: remove unused test code Signed-off-by: deadprogram --- drivers/i2c/helpers_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/i2c/helpers_test.go b/drivers/i2c/helpers_test.go index 191aaa0e..01fef94b 100644 --- a/drivers/i2c/helpers_test.go +++ b/drivers/i2c/helpers_test.go @@ -109,15 +109,6 @@ func (t *i2cTestAdaptor) ReadWordData(reg uint8) (val uint16, err error) { return (uint16(high) << 8) | uint16(low), err } -func (t *i2cTestAdaptor) ReadBlockData(_ uint8, b []byte) (n int, err error) { - t.mtx.Lock() - defer t.mtx.Unlock() - bytes := make([]byte, 32) - bytesRead, err := t.i2cReadImpl(bytes) - copy(b, bytes[:bytesRead]) - return bytesRead, err -} - func (t *i2cTestAdaptor) WriteByte(val byte) (err error) { t.mtx.Lock() defer t.mtx.Unlock()