Remove unused code in dashboard.