Remove unused variable.
Remove useless assert.