Remove unnecessary anonymous functions
Merge pull request #3 from mstap/patch-3

Remove unnecessary anonymous functions