Corrected error in abandon_branch() with missing local branches
Removed unneeded variable
Corrected abandonment behavior
Removed unneeded variable