Add proper deprecation warnings to two methods.

These were deprecated in the scaladoc but not annotated as such, so did not
emit warnings.
Merge pull request #1545 from lift/scaladoc-deprecations

2.6: Add proper deprecation warnings to two methods.