Removed "dead code" in sample