crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.36k stars 1.62k forks source link

Drop unused slice parameters of `#evented_*` methods #14627

Closed straight-shoota closed 4 months ago

straight-shoota commented 4 months ago

#evented_write was refactored in #14626 so it no longer needs to keep track of the input slice size in order to make sure it's fully written. Thus the slice parameter is obsolete. #evented_read and #evented_send didn't even do anything useful with it except for forwarding it to the block (where it was sometimes used as block parameter, but often the original instead).