Fix GetBranch function syntax problem
Removing unused lines