File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Concurrent ;
3
- using System . Collections . Generic ;
4
3
using System . Linq ;
5
4
using System . Text ;
6
5
using JetBrains . Annotations ;
7
- using Flow . Launcher . Infrastructure . Logger ;
8
- using Flow . Launcher . Infrastructure . Storage ;
9
6
using Flow . Launcher . Infrastructure . UserSettings ;
10
7
using ToolGood . Words . Pinyin ;
11
- using System . Threading . Tasks ;
12
- using Microsoft . AspNetCore . Localization ;
13
8
14
9
namespace Flow . Launcher . Infrastructure
15
10
{
@@ -28,7 +23,6 @@ public void Initialize([NotNull] Settings settings)
28
23
_settings = settings ?? throw new ArgumentNullException ( nameof ( settings ) ) ;
29
24
}
30
25
31
-
32
26
public string Translate ( string content )
33
27
{
34
28
if ( _settings . ShouldUsePinyin )
@@ -40,7 +34,6 @@ public string Translate(string content)
40
34
var resultList = WordsHelper . GetPinyinList ( content ) ;
41
35
42
36
StringBuilder resultBuilder = new StringBuilder ( ) ;
43
-
44
37
45
38
for ( int i = 0 ; i < resultList . Length ; i ++ )
46
39
{
@@ -71,7 +64,6 @@ public string Translate(string content)
71
64
}
72
65
}
73
66
74
-
75
67
return _pinyinCache [ content ] = resultBuilder . ToString ( ) ;
76
68
}
77
69
else
You can’t perform that action at this time.
0 commit comments