From e5f09feb03f0d059bd0b5631574babba794ec8bb Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Fri, 31 Jul 2015 20:01:05 +0100 Subject: [PATCH] Refactor src/Logic/BlueRaySup --- src/Forms/ChangeCasing.cs | 1 - src/Logic/BluRaySup/BluRaySupPalette.cs | 1 - src/Logic/BluRaySup/BluRaySupParser.cs | 1 - src/Logic/BluRaySup/BluRaySupPicture.cs | 2 +- src/Logic/BluRaySup/Core.cs | 2 +- src/Logic/BluRaySup/ImageObject.cs | 3 +-- src/Logic/BluRaySup/ImageObjectFragment.cs | 2 +- src/Logic/BluRaySup/PaletteInfo.cs | 2 +- src/Logic/BluRaySup/ToolBox.cs | 1 - src/Logic/ColorChooser/ColorChangedEventArgs.cs | 4 ++-- src/Logic/ColorChooser/ColorHandler.cs | 2 +- 11 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/Forms/ChangeCasing.cs b/src/Forms/ChangeCasing.cs index 19e911bb3..02aaabfc1 100644 --- a/src/Forms/ChangeCasing.cs +++ b/src/Forms/ChangeCasing.cs @@ -9,7 +9,6 @@ namespace Nikse.SubtitleEdit.Forms { public sealed partial class ChangeCasing : PositionAndSizeForm { - private int _noOfLinesChanged; public ChangeCasing() diff --git a/src/Logic/BluRaySup/BluRaySupPalette.cs b/src/Logic/BluRaySup/BluRaySupPalette.cs index f64ea70b1..98c484c64 100644 --- a/src/Logic/BluRaySup/BluRaySupPalette.cs +++ b/src/Logic/BluRaySup/BluRaySupPalette.cs @@ -18,7 +18,6 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup { - public class BluRaySupPalette { /** Number of palette entries */ diff --git a/src/Logic/BluRaySup/BluRaySupParser.cs b/src/Logic/BluRaySup/BluRaySupParser.cs index 497f18ba2..ae34cbb7e 100644 --- a/src/Logic/BluRaySup/BluRaySupParser.cs +++ b/src/Logic/BluRaySup/BluRaySupParser.cs @@ -27,7 +27,6 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup { public static class BluRaySupParser { - private class SupSegment { /// diff --git a/src/Logic/BluRaySup/BluRaySupPicture.cs b/src/Logic/BluRaySup/BluRaySupPicture.cs index 42357f68c..213256c6e 100644 --- a/src/Logic/BluRaySup/BluRaySupPicture.cs +++ b/src/Logic/BluRaySup/BluRaySupPicture.cs @@ -569,4 +569,4 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup } } -} +} \ No newline at end of file diff --git a/src/Logic/BluRaySup/Core.cs b/src/Logic/BluRaySup/Core.cs index cf4291f3d..76401ac2b 100644 --- a/src/Logic/BluRaySup/Core.cs +++ b/src/Logic/BluRaySup/Core.cs @@ -87,4 +87,4 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup public const double FpsTrg = FpsPal; } -} +} \ No newline at end of file diff --git a/src/Logic/BluRaySup/ImageObject.cs b/src/Logic/BluRaySup/ImageObject.cs index 11bb0034f..2158f7f39 100644 --- a/src/Logic/BluRaySup/ImageObject.cs +++ b/src/Logic/BluRaySup/ImageObject.cs @@ -20,7 +20,6 @@ using System.Collections.Generic; namespace Nikse.SubtitleEdit.Logic.BluRaySup { - public class ImageObject { /// @@ -58,4 +57,4 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup /// public int YOffset { get; set; } } -} +} \ No newline at end of file diff --git a/src/Logic/BluRaySup/ImageObjectFragment.cs b/src/Logic/BluRaySup/ImageObjectFragment.cs index 61a111b4f..174a5963f 100644 --- a/src/Logic/BluRaySup/ImageObjectFragment.cs +++ b/src/Logic/BluRaySup/ImageObjectFragment.cs @@ -34,4 +34,4 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup public byte[] ImageBuffer { get; set; } } -} +} \ No newline at end of file diff --git a/src/Logic/BluRaySup/PaletteInfo.cs b/src/Logic/BluRaySup/PaletteInfo.cs index af2d1bbce..5be35dcf6 100644 --- a/src/Logic/BluRaySup/PaletteInfo.cs +++ b/src/Logic/BluRaySup/PaletteInfo.cs @@ -47,4 +47,4 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup } } -} +} \ No newline at end of file diff --git a/src/Logic/BluRaySup/ToolBox.cs b/src/Logic/BluRaySup/ToolBox.cs index 7071c8f23..09a4ed622 100644 --- a/src/Logic/BluRaySup/ToolBox.cs +++ b/src/Logic/BluRaySup/ToolBox.cs @@ -21,7 +21,6 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup { public static class ToolBox { - /// /// Convert bytes to a C-style hex string with leading zeroes /// diff --git a/src/Logic/ColorChooser/ColorChangedEventArgs.cs b/src/Logic/ColorChooser/ColorChangedEventArgs.cs index 78dc4e179..1ae5692c6 100644 --- a/src/Logic/ColorChooser/ColorChangedEventArgs.cs +++ b/src/Logic/ColorChooser/ColorChangedEventArgs.cs @@ -28,11 +28,11 @@ namespace Nikse.SubtitleEdit.Logic.ColorChooser public ColorChangedEventArgs(ColorHandler.ARGB argb, ColorHandler.HSV hsv) { ARGB = argb; - this.HSV = hsv; + HSV = hsv; } public ColorHandler.ARGB ARGB { get; private set; } public ColorHandler.HSV HSV { get; private set; } } -} +} \ No newline at end of file diff --git a/src/Logic/ColorChooser/ColorHandler.cs b/src/Logic/ColorChooser/ColorHandler.cs index 29f44a5ca..cc783e9a5 100644 --- a/src/Logic/ColorChooser/ColorHandler.cs +++ b/src/Logic/ColorChooser/ColorHandler.cs @@ -254,4 +254,4 @@ namespace Nikse.SubtitleEdit.Logic.ColorChooser #endregion Nested type: HSV } -} +} \ No newline at end of file