fix unused and docblox

by
https://scrutinizer-ci.com/g/koriym/Ray.Di/inspections/b0fd10b7-afe6-4c5
c-b4a8-1c7b0544f4bd/patches