remove no longer unused params.
remove unnecessary "&&".
remove no longer unused checkroot().
Merge pull request #22 from axsh/remove-unnecessary-code

Remove unnecessary code