Skip to content

Commit ae5668a

Browse files
committed
Code Analysis, Remove Other non-focused projects for personal use
1 parent d0efee0 commit ae5668a

34 files changed

Lines changed: 3226 additions & 3419 deletions

ICSharpCode.SharpZipLib.sln

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Configuration", "S
1313
EndProject
1414
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib", "src\ICSharpCode.SharpZipLib\ICSharpCode.SharpZipLib.csproj", "{C53BEB8A-0989-43A7-B3EC-F7028749FA71}"
1515
EndProject
16-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.Tests", "test\ICSharpCode.SharpZipLib.Tests\ICSharpCode.SharpZipLib.Tests.csproj", "{82211166-9C45-4603-8E3A-2CA2EFFCBC26}"
17-
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.TestBootstrapper", "test\ICSharpCode.SharpZipLib.TestBootstrapper\ICSharpCode.SharpZipLib.TestBootstrapper.csproj", "{535D7365-C5B1-4253-9233-D72D972CA851}"
19-
EndProject
20-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.Benchmark", "benchmark\ICSharpCode.SharpZipLib.Benchmark\ICSharpCode.SharpZipLib.Benchmark.csproj", "{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}"
21-
EndProject
2216
Global
2317
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2418
Debug|Any CPU = Debug|Any CPU
@@ -29,18 +23,6 @@ Global
2923
{C53BEB8A-0989-43A7-B3EC-F7028749FA71}.Debug|Any CPU.Build.0 = Debug|Any CPU
3024
{C53BEB8A-0989-43A7-B3EC-F7028749FA71}.Release|Any CPU.ActiveCfg = Release|Any CPU
3125
{C53BEB8A-0989-43A7-B3EC-F7028749FA71}.Release|Any CPU.Build.0 = Release|Any CPU
32-
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33-
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Debug|Any CPU.Build.0 = Debug|Any CPU
34-
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Release|Any CPU.ActiveCfg = Release|Any CPU
35-
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Release|Any CPU.Build.0 = Release|Any CPU
36-
{535D7365-C5B1-4253-9233-D72D972CA851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37-
{535D7365-C5B1-4253-9233-D72D972CA851}.Debug|Any CPU.Build.0 = Debug|Any CPU
38-
{535D7365-C5B1-4253-9233-D72D972CA851}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{535D7365-C5B1-4253-9233-D72D972CA851}.Release|Any CPU.Build.0 = Release|Any CPU
40-
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41-
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
42-
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
43-
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Release|Any CPU.Build.0 = Release|Any CPU
4426
EndGlobalSection
4527
GlobalSection(SolutionProperties) = preSolution
4628
HideSolutionNode = FALSE

src/ICSharpCode.SharpZipLib/BZip2/BZip2.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ public static void Decompress(Stream inStream, Stream outStream, bool isStreamOw
2525

2626
try
2727
{
28-
using (BZip2InputStream bzipInput = new BZip2InputStream(inStream))
29-
{
30-
bzipInput.IsStreamOwner = isStreamOwner;
31-
Core.StreamUtils.Copy(bzipInput, outStream, new byte[4096]);
32-
}
28+
using BZip2InputStream bzipInput = new BZip2InputStream(inStream);
29+
bzipInput.IsStreamOwner = isStreamOwner;
30+
Core.StreamUtils.Copy(bzipInput, outStream, new byte[4096]);
3331
}
3432
finally
3533
{
@@ -60,11 +58,9 @@ public static void Compress(Stream inStream, Stream outStream, bool isStreamOwne
6058

6159
try
6260
{
63-
using (BZip2OutputStream bzipOutput = new BZip2OutputStream(outStream, level))
64-
{
65-
bzipOutput.IsStreamOwner = isStreamOwner;
66-
Core.StreamUtils.Copy(inStream, bzipOutput, new byte[4096]);
67-
}
61+
using BZip2OutputStream bzipOutput = new BZip2OutputStream(outStream, level);
62+
bzipOutput.IsStreamOwner = isStreamOwner;
63+
Core.StreamUtils.Copy(inStream, bzipOutput, new byte[4096]);
6864
}
6965
finally
7066
{

src/ICSharpCode.SharpZipLib/BZip2/BZip2Exception.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ public class BZip2Exception : SharpZipBaseException
1313
/// Initialise a new instance of <see cref="BZip2Exception" />.
1414
/// </summary>
1515
public BZip2Exception()
16-
{
17-
}
16+
{ }
1817

1918
/// <summary>
2019
/// Initialise a new instance of <see cref="BZip2Exception" /> with its message string.
2120
/// </summary>
2221
/// <param name="message">A <see cref="string"/> that describes the error.</param>
23-
public BZip2Exception(string message)
24-
: base(message)
22+
public BZip2Exception(string message) : base(message)
2523
{
2624
}
2725

@@ -30,8 +28,7 @@ public BZip2Exception(string message)
3028
/// </summary>
3129
/// <param name="message">A <see cref="string"/> that describes the error.</param>
3230
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
33-
public BZip2Exception(string message, Exception innerException)
34-
: base(message, innerException)
31+
public BZip2Exception(string message, Exception innerException) : base(message, innerException)
3532
{
3633
}
3734

@@ -46,8 +43,7 @@ public BZip2Exception(string message, Exception innerException)
4643
/// The System.Runtime.Serialization.StreamingContext that contains contextual information
4744
/// about the source or destination.
4845
/// </param>
49-
protected BZip2Exception(SerializationInfo info, StreamingContext context)
50-
: base(info, context)
46+
protected BZip2Exception(SerializationInfo info, StreamingContext context) : base(info, context)
5147
{
5248
}
5349
}

0 commit comments

Comments
 (0)