Add __unused for unused method parameters.

Otherwise warnings are produced when compiling with `-Wunused-parameter`.