Remove useless return value for mock class.