Remove an unused variable

This fixes build warnings when building for OS X with clang.
Merge pull request #1009 from mstorsjo/remove-unused-var

Remove an unused variable