Remove dead error references