Remove dead code.

New code should probably use shared_ptr anyway.