Remove unused variable in edit()