Relates to #1832. Adding the obsolete attribute instead of removing the unused public function.