Remove unused pinyin code (#7455)

* Remove pinyin

* Remove pinyin mappings and files

* Remove pinyin files from MSI
This commit is contained in:
Divyansh Srivastava
2020-10-23 10:34:24 -07:00
committed by GitHub
parent 859e9f8b04
commit ba07b52cc2
11 changed files with 4 additions and 27367 deletions

View File

@@ -17,13 +17,6 @@ namespace Wox.Infrastructure
public SearchPrecisionScore UserSettingSearchPrecision { get; set; }
private readonly IAlphabet _alphabet;
public StringMatcher(IAlphabet alphabet = null)
{
_alphabet = alphabet;
}
public static StringMatcher Instance { get; internal set; }
[Obsolete("This method is obsolete and should not be used. Please use the static function StringMatcher.FuzzySearch")]
@@ -67,15 +60,7 @@ namespace Wox.Infrastructure
}
query = query.Trim();
if (_alphabet != null)
{
query = _alphabet.Translate(query);
stringToCompare = _alphabet.Translate(stringToCompare);
}
var fullStringToCompareWithoutCase = opt.IgnoreCase ? stringToCompare.ToLower() : stringToCompare;
var queryWithoutCase = opt.IgnoreCase ? query.ToLower() : query;
var querySubstrings = queryWithoutCase.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);