remove import/variable not used (and add a missing warnings imports).