Remove some unused code. Don't check out branch if nothing has changed.