Remove unused variable, and small typehint.

Signed-off-by: crynobone <crynobone@gmail.com>