clean up, no code changes

This commit is contained in:
Jeremy Wu 2020-12-14 21:21:48 +11:00
parent 64d67c1aa5
commit 4c773dbaa1

View file

@ -1,15 +1,10 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JetBrains.Annotations;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Infrastructure.UserSettings;
using ToolGood.Words.Pinyin;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Localization;
namespace Flow.Launcher.Infrastructure
{
@ -28,7 +23,6 @@ namespace Flow.Launcher.Infrastructure
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
}
public string Translate(string content)
{
if (_settings.ShouldUsePinyin)
@ -40,7 +34,6 @@ namespace Flow.Launcher.Infrastructure
var resultList = WordsHelper.GetPinyinList(content);
StringBuilder resultBuilder = new StringBuilder();
for (int i = 0; i < resultList.Length; i++)
{
@ -71,7 +64,6 @@ namespace Flow.Launcher.Infrastructure
}
}
return _pinyinCache[content] = resultBuilder.ToString();
}
else