remove unused code

Some unused code.