Removed unused code in admin.