Remove an unused variable

This fixes build warnings with clang on OS X.
Merge pull request #1167 from mstorsjo/remove-unused-variable

Remove an unused variable