permvar: remove unnecessary code