Removed some dead code from the examples.