Skip to content

Commit

Permalink
[JA CVVC] remove unnecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiko committed May 19, 2024
1 parent 888397a commit 7f013a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions OpenUtau.Plugin.Builtin/JapaneseCVVCPhonemizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ static JapaneseCVVCPhonemizer() {
private bool checkOtoUntilHit(string[] input, Note note, out UOto oto) {
oto = default;
var attr = note.phonemeAttributes?.FirstOrDefault(attr => attr.index == 0) ?? default;
var attr1 = note.phonemeAttributes?.FirstOrDefault(attr => attr.index == 1) ?? default;

var otos = new List<UOto>();
foreach (string test in input) {
Expand All @@ -119,11 +118,9 @@ private bool checkOtoUntilHit(string[] input, Note note, out UOto oto) {
if (otos.Any(oto => (oto.Color ?? string.Empty) == color)) {
oto = otos.Find(oto => (oto.Color ?? string.Empty) == color);
return true;
} else if (otos.Any(oto => (color ?? string.Empty) == color)) {
oto = otos.Find(oto => (color ?? string.Empty) == color);
return true;
} else {
return false;
oto = otos.First();
return true;
}
}
return false;
Expand Down

0 comments on commit 7f013a9

Please sign in to comment.