ps7: remove unused code