removed dublicated code (coverity CID 54064)