remove redundant protect code
Merge pull request #633 from volvet/rm_redundant_protect

remove redundant protect code