Skip to content

Commit

Permalink
Remove some redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Apr 28, 2023
1 parent cc4e4c2 commit 61b82c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mkdocs/structure/pages.py
Expand Up @@ -4,6 +4,7 @@
import logging
import os
import posixpath
import warnings
from typing import TYPE_CHECKING, Any, Callable, Mapping, MutableMapping, Optional, Union
from urllib.parse import unquote as urlunquote
from urllib.parse import urljoin, urlsplit, urlunsplit
Expand Down Expand Up @@ -232,10 +233,8 @@ def read_source(self, config: MkDocsConfig) -> None:
self.markdown, self.meta = meta.get_data(source)

def _set_title(self) -> None:
"""Soft-deprecated, do not use."""
self.render(
{'markdown_extensions': (), 'mdx_configs': None}, # type: ignore
Files([]),
warnings.warn(
"_set_title is no longer used in MkDocs and will be removed soon.", DeprecationWarning
)

@weak_property
Expand Down

0 comments on commit 61b82c3

Please sign in to comment.