Skip to content

Commit

Permalink
[Release] Cleaned up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
melanchall committed Jan 13, 2023
1 parent db2e70c commit 6a2ea49
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion DryWetMidi/Core/Chunks/TrackChunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime;

namespace Melanchall.DryWetMidi.Core
{
Expand Down
1 change: 0 additions & 1 deletion DryWetMidi/Tools/Splitter/Splitter.SplitByChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Melanchall.DryWetMidi.Tools
{
Expand Down
23 changes: 0 additions & 23 deletions Utilities/Common/UiUtilities.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Text.RegularExpressions;

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

private static void WriteColoredLine(string text, ConsoleColor? foreground, ConsoleColor? background)
{
var oldForeground = Console.ForegroundColor;
var oldBackground = Console.BackgroundColor;

try
{
if (foreground != null)
Console.ForegroundColor = foreground.Value;

if (background != null)
Console.BackgroundColor = background.Value;

Console.WriteLine(text);
}
finally
{
Console.ForegroundColor = oldForeground;
Console.BackgroundColor = oldBackground;
}
}

#endregion
}
}

0 comments on commit 6a2ea49

Please sign in to comment.