Fixed dead code warnings

Closes https://github.com/AngryLawyer/rust-sdl2/issues/127
Merge pull request #128 from bvssvni/master

Fixed dead code warnings