Remove dead code in examples