doc: Remove reference to deprecated 'dense' function

(cherry picked from commit d48e183a7bbbbbfdfd7a8e2261175fb51792c98e)
ref: #8691