Remove unused ByteArray method