Fixed unused parameter warnings

Fixed compiler warnings with `__unused` where parameter is not used.