Removing line that has a method that does not exist in git