Browse Source

Remove empty lines and unused using statements

pull/528/head
Jason Nelson 8 years ago
parent
commit
30007d92ca
  1. 6
      src/ImageSharp/Formats/Png/IPngDecoderOptions.cs
  2. 2
      src/ImageSharp/Formats/Png/IPngEncoderOptions.cs
  3. 2
      src/ImageSharp/Formats/Png/ImageExtensions.cs
  4. 2
      src/ImageSharp/Formats/Png/PngChunk.cs
  5. 2
      src/ImageSharp/Formats/Png/PngChunkType.cs
  6. 2
      src/ImageSharp/Formats/Png/PngDecoder.cs
  7. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs
  8. 5
      src/ImageSharp/Formats/Png/Zlib/Adler32.cs
  9. 5
      src/ImageSharp/Formats/Png/Zlib/IChecksum.cs

6
src/ImageSharp/Formats/Png/IPngDecoderOptions.cs

@ -1,11 +1,7 @@
// Copyright (c) Six Labors and contributors. // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
using System.IO;
using System.Text; using System.Text;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Png namespace SixLabors.ImageSharp.Formats.Png
{ {
@ -24,4 +20,4 @@ namespace SixLabors.ImageSharp.Formats.Png
/// </summary> /// </summary>
Encoding TextEncoding { get; } Encoding TextEncoding { get; }
} }
} }

2
src/ImageSharp/Formats/Png/IPngEncoderOptions.cs

@ -45,4 +45,4 @@ namespace SixLabors.ImageSharp.Formats.Png
/// </summary> /// </summary>
bool WriteGamma { get; } bool WriteGamma { get; }
} }
} }

2
src/ImageSharp/Formats/Png/ImageExtensions.cs

@ -37,4 +37,4 @@ namespace SixLabors.ImageSharp
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
=> source.Save(stream, encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(ImageFormats.Png)); => source.Save(stream, encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(ImageFormats.Png));
} }
} }

2
src/ImageSharp/Formats/Png/PngChunk.cs

@ -54,4 +54,4 @@ namespace SixLabors.ImageSharp.Formats.Png
this.Type == PngChunkType.Data || this.Type == PngChunkType.Data ||
this.Type == PngChunkType.End; this.Type == PngChunkType.End;
} }
} }

2
src/ImageSharp/Formats/Png/PngChunkType.cs

@ -57,4 +57,4 @@ namespace SixLabors.ImageSharp.Formats.Png
/// </summary> /// </summary>
Physical = 0x70485973U // pHYs Physical = 0x70485973U // pHYs
} }
} }

2
src/ImageSharp/Formats/Png/PngDecoder.cs

@ -60,4 +60,4 @@ namespace SixLabors.ImageSharp.Formats.Png
return decoder.Identify(stream); return decoder.Identify(stream);
} }
} }
} }

2
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -1353,4 +1353,4 @@ namespace SixLabors.ImageSharp.Formats.Png
this.scanline = temp; this.scanline = temp;
} }
} }
} }

5
src/ImageSharp/Formats/Png/Zlib/Adler32.cs

@ -78,10 +78,7 @@ namespace SixLabors.ImageSharp.Formats.Png.Zlib
public long Value public long Value
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
get get => this.checksum;
{
return this.checksum;
}
} }
/// <inheritdoc/> /// <inheritdoc/>

5
src/ImageSharp/Formats/Png/Zlib/IChecksum.cs

@ -17,10 +17,7 @@ namespace SixLabors.ImageSharp.Formats.Png.Zlib
/// <summary> /// <summary>
/// Gets the data checksum computed so far. /// Gets the data checksum computed so far.
/// </summary> /// </summary>
long Value long Value { get; }
{
get;
}
/// <summary> /// <summary>
/// Resets the data checksum as if no update was ever called. /// Resets the data checksum as if no update was ever called.

Loading…
Cancel
Save