Skip to content

Commit 4c773db

Browse files
committed
clean up, no code changes
1 parent 64d67c1 commit 4c773db

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
using System;
22
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
43
using System.Linq;
54
using System.Text;
65
using JetBrains.Annotations;
7-
using Flow.Launcher.Infrastructure.Logger;
8-
using Flow.Launcher.Infrastructure.Storage;
96
using Flow.Launcher.Infrastructure.UserSettings;
107
using ToolGood.Words.Pinyin;
11-
using System.Threading.Tasks;
12-
using Microsoft.AspNetCore.Localization;
138

149
namespace Flow.Launcher.Infrastructure
1510
{
@@ -28,7 +23,6 @@ public void Initialize([NotNull] Settings settings)
2823
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
2924
}
3025

31-
3226
public string Translate(string content)
3327
{
3428
if (_settings.ShouldUsePinyin)
@@ -40,7 +34,6 @@ public string Translate(string content)
4034
var resultList = WordsHelper.GetPinyinList(content);
4135

4236
StringBuilder resultBuilder = new StringBuilder();
43-
4437

4538
for (int i = 0; i < resultList.Length; i++)
4639
{
@@ -71,7 +64,6 @@ public string Translate(string content)
7164
}
7265
}
7366

74-
7567
return _pinyinCache[content] = resultBuilder.ToString();
7668
}
7769
else

0 commit comments

Comments
 (0)