remove unused hashfile()

We might have used hashfile() at one point, the function has been left
behind after its last use has been removed. Also get rid of the now
useless hashlib import.

Change-Id: I37bae27954c84f1ed511e1f32f3715aafec361fc