refactor(*): removing unused vars

Close #9710