Skip to content

Commit

Permalink
Remove deprecated search splitters in sphinx.search.ja (#11359)
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Apr 26, 2023
1 parent 4eb706e commit 124957a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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

0 comments on commit 124957a

Please sign in to comment.