Added -Wextra to compiler flags, found out about redundant test.
Removed unused parameter.