Remove unused code for sourcemaps