Skip to content

Commit 6a2ea49

Browse files
committed
[Release] Cleaned up the code
1 parent db2e70c commit 6a2ea49

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

DryWetMidi/Core/Chunks/TrackChunk.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using System.IO;
55
using System.Linq;
6-
using System.Runtime;
76

87
namespace Melanchall.DryWetMidi.Core
98
{

DryWetMidi/Tools/Splitter/Splitter.SplitByChannel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;
7-
using System.Text;
87

98
namespace Melanchall.DryWetMidi.Tools
109
{

Utilities/Common/UiUtilities.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Text.RegularExpressions;
32

43
namespace Melanchall.Common
54
{
@@ -70,28 +69,6 @@ public static ConsoleKey WaitForOneOfKeys(params ConsoleKey[] keys)
7069
private static void WriteLines(params string[] lines) =>
7170
lines.ToList().ForEach(Console.WriteLine);
7271

73-
private static void WriteColoredLine(string text, ConsoleColor? foreground, ConsoleColor? background)
74-
{
75-
var oldForeground = Console.ForegroundColor;
76-
var oldBackground = Console.BackgroundColor;
77-
78-
try
79-
{
80-
if (foreground != null)
81-
Console.ForegroundColor = foreground.Value;
82-
83-
if (background != null)
84-
Console.BackgroundColor = background.Value;
85-
86-
Console.WriteLine(text);
87-
}
88-
finally
89-
{
90-
Console.ForegroundColor = oldForeground;
91-
Console.BackgroundColor = oldBackground;
92-
}
93-
}
94-
9572
#endregion
9673
}
9774
}

0 commit comments

Comments
 (0)