Remove unused variable readBytes from read()

The local `readBytes` is assigned to but never used.