i2c: remove unused test code

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-05-13 14:10:01 +02:00
parent ecdd98aa15
commit d6781a478a
1 changed files with 0 additions and 9 deletions

View File

@ -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()