[sr-dev] git:master: core: add functions remove_branch(int) and clear_branches()