swscale: cleanup unused code