Removes unused code from rc