Skip to content

Commit 91bc579

Browse files
committed
fix mac build
1 parent 78fc333 commit 91bc579

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

OpenUtau.Plugin.Builtin/KoreanCBNNPhonemizer.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
3-
using System.Drawing;
43
using System.Linq;
54
using OpenUtau.Api;
6-
using OpenUtau.Classic;
75
using OpenUtau.Core.Ustx;
8-
using Serilog;
9-
using static OpenUtau.Api.Phonemizer;
106

117
namespace OpenUtau.Plugin.Builtin {
128
/// This phonemizer is based on 'KOR CVC Phonemizer'(by NANA). ///

OpenUtau.Plugin.Builtin/KoreanCVCPhonemizer.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
3-
using System.Drawing;
43
using System.Linq;
54
using OpenUtau.Api;
6-
using OpenUtau.Classic;
75
using OpenUtau.Core.Ustx;
8-
using Serilog;
9-
using static OpenUtau.Api.Phonemizer;
106

117
namespace OpenUtau.Plugin.Builtin {
128
[Phonemizer("KoreanCVCPhonemizer", "KO CVC", "NANA", language:"KO")]

OpenUtau/Views/SingersDialog.axaml.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Drawing;
32
using System.IO;
43
using System.Linq;
54
using System.Threading.Tasks;
@@ -60,10 +59,6 @@ async void OnSetPortrait(object sender, RoutedEventArgs args) {
6059
return;
6160
}
6261
try {
63-
using (var stream = File.OpenRead(file)) {
64-
var portrait = new Bitmap(stream);
65-
portrait.Dispose();
66-
}
6762
viewModel.SetPortrait(Path.GetRelativePath(viewModel.Singer.Location, file));
6863
} catch (Exception e) {
6964
Log.Error(e, "Failed to set portrait");

0 commit comments

Comments
 (0)