Removed unused code [skip ci]