Removed deprecated function call