Pruning deprecated functions from examples
#1032 warning messages for deprecated