[Commit] Remove redundant parameter and checks.
Merge pull request #464 from mono/optimize

[Commit] Remove redundant parameter and checks.