Removing unused code for scale ray