session: remove unused code