prevent iterate list every time
remove some redundant if branch
Merge pull request #84 from yodalee/clean-redundant-code-in-qucs.cpp

Clean redundant code in qucs.cpp