Remove two unused variables, causing compiler warnings.
Ignore unused mir event functions, need headers in Ubuntu 14.04 to use them.