From 39a6d3652807bbb2ca7e27510c6ea95731378819 Mon Sep 17 00:00:00 2001 From: _aLfa_ Date: Sun, 14 Sep 2014 21:35:55 +0200 Subject: [PATCH] Remove redundant constructors --- src/Logic/TransportStream/EbuPesDataFieldText.cs | 7 ------- src/Logic/VideoFormats/RiffParser.cs | 6 ------ src/Logic/zlib/ZOutputStream.cs | 4 ++-- src/Logic/zlib/ZStreamException.cs | 4 ---- 4 files changed, 2 insertions(+), 19 deletions(-) diff --git a/src/Logic/TransportStream/EbuPesDataFieldText.cs b/src/Logic/TransportStream/EbuPesDataFieldText.cs index d13c46656..67feb920e 100644 --- a/src/Logic/TransportStream/EbuPesDataFieldText.cs +++ b/src/Logic/TransportStream/EbuPesDataFieldText.cs @@ -1,17 +1,10 @@ namespace Nikse.SubtitleEdit.Logic.TransportStream { - public class EbuPesDataField { public int DataUnitId { get; set; } public int DataUnitLength { get; set; } public byte[] DataField { get; set; } public EbuPesDataFieldText FieldText; - - public EbuPesDataField() - { - } - } - } diff --git a/src/Logic/VideoFormats/RiffParser.cs b/src/Logic/VideoFormats/RiffParser.cs index 756abcaa7..15b315dad 100644 --- a/src/Logic/VideoFormats/RiffParser.cs +++ b/src/Logic/VideoFormats/RiffParser.cs @@ -9,9 +9,7 @@ namespace Nikse.SubtitleEdit.Logic [Serializable] public class RiffParserException : ApplicationException { - public RiffParserException() - : base() { } @@ -147,10 +145,6 @@ namespace Nikse.SubtitleEdit.Logic #endregion public Members - public RiffParser() - { - } - /// /// Determine if the file is a valid RIFF file /// diff --git a/src/Logic/zlib/ZOutputStream.cs b/src/Logic/zlib/ZOutputStream.cs index 3468732ac..d82ec4891 100644 --- a/src/Logic/zlib/ZOutputStream.cs +++ b/src/Logic/zlib/ZOutputStream.cs @@ -92,7 +92,7 @@ namespace ComponentAce.Compression.Libs.zlib private System.IO.Stream out_Renamed; - public ZOutputStream(System.IO.Stream out_Renamed):base() + public ZOutputStream(System.IO.Stream out_Renamed) { InitBlock(); this.out_Renamed = out_Renamed; @@ -100,7 +100,7 @@ namespace ComponentAce.Compression.Libs.zlib compress = false; } - public ZOutputStream(System.IO.Stream out_Renamed, int level):base() + public ZOutputStream(System.IO.Stream out_Renamed, int level) { InitBlock(); this.out_Renamed = out_Renamed; diff --git a/src/Logic/zlib/ZStreamException.cs b/src/Logic/zlib/ZStreamException.cs index 77edfc178..e411a9773 100644 --- a/src/Logic/zlib/ZStreamException.cs +++ b/src/Logic/zlib/ZStreamException.cs @@ -45,13 +45,10 @@ using System; namespace ComponentAce.Compression.Libs.zlib { - [Serializable] public class ZStreamException : System.IO.IOException { - public ZStreamException() - : base() { } @@ -59,6 +56,5 @@ namespace ComponentAce.Compression.Libs.zlib : base(s) { } - } } \ No newline at end of file