builtin-branch.c: remove unused code in append_ref() callback function