Library/BranchManager.php
public function removeBranch(Branch $branch)
    {
        $parentBranch = $branch->getParentBranch();
        $this->currentBranch = $parentBranch;
        --$this->level;
    }
public function removeBranch(Branch $branch)
    {
        $parentBranch = $branch->getParentBranch();
        $this->currentBranch = $parentBranch;
        --$this->level;
    }
public function removeBranch ( Branch $ branch ) { $ parentBranch = $ branch -> getParentBranch ( ) ; $ this -> currentBranch = $ parentBranch ; -- $ this -> level ; }
Removes a branch from the branch manager.

@param Branch $branch
Removes a branch from the branch manager .