Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old splitters #11359

Merged
merged 2 commits into from Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -7,6 +7,9 @@ Dependencies
Incompatible changes
--------------------

* #11359: Remove long-deprecated aliases for ``MecabSplitter`` and
``DefaultSplitter`` in ``sphinx.search.ja``.

Deprecated
----------

Expand Down
5 changes: 0 additions & 5 deletions sphinx/search/ja.py
Expand Up @@ -111,8 +111,6 @@ def __del__(self) -> None:
if self.ctypes_libmecab:
self.ctypes_libmecab.mecab_destroy(self.ctypes_mecab)

MeCabBinder = MecabSplitter # keep backward compatibility until Sphinx-1.6


class JanomeSplitter(BaseSplitter):
def __init__(self, options: dict) -> None:
Expand Down Expand Up @@ -507,9 +505,6 @@ def split(self, input: str) -> list[str]:
return result


TinySegmenter = DefaultSplitter # keep backward compatibility until Sphinx-1.6


class SearchJapanese(SearchLanguage):
"""
Japanese search implementation: uses no stemmer, but word splitting is quite
Expand Down