issue #22067: don't use obsolete function