Skip to content

Commit b816d1b

Browse files
Remove unused key in pinyin alphabet
1 parent b10a6e1 commit b816d1b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public bool ShouldTranslate(string stringToTranslate)
8383
map.endConstruct();
8484

8585
var key = resultBuilder.ToString();
86-
map.setKey(key);
8786

8887
return _pinyinCache[content] = (key, map);
8988
}

Flow.Launcher.Infrastructure/TranslationMapping.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ public class TranslationMapping
1212
private List<int> translatedIndexs = new List<int>();
1313
private int translatedLength = 0;
1414

15-
public string key { get; private set; }
16-
17-
public void setKey(string key)
18-
{
19-
this.key = key;
20-
}
21-
2215
public void AddNewIndex(int originalIndex, int translatedIndex, int length)
2316
{
2417
if (constructed)

0 commit comments

Comments
 (0)