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 11using System ;
22using System . Collections . Concurrent ;
3- using System . Collections . Generic ;
43using System . Linq ;
54using System . Text ;
65using JetBrains . Annotations ;
7- using Flow . Launcher . Infrastructure . Logger ;
8- using Flow . Launcher . Infrastructure . Storage ;
96using Flow . Launcher . Infrastructure . UserSettings ;
107using ToolGood . Words . Pinyin ;
11- using System . Threading . Tasks ;
12- using Microsoft . AspNetCore . Localization ;
138
149namespace 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
You can’t perform that action at this time.
0 commit comments