Browse Source

removed unnecessary comments

af/merge-core
popow 8 years ago
parent
commit
f30389f7d5
  1. 3
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
  2. 1
      src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs

3
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -621,7 +621,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
int bytesToWrite = remaining > MaxBytesApp1 ? MaxBytesApp1 : remaining; int bytesToWrite = remaining > MaxBytesApp1 ? MaxBytesApp1 : remaining;
int app1Length = bytesToWrite + 2; int app1Length = bytesToWrite + 2;
// write the app1 header
this.WriteApp1Header(app1Length); this.WriteApp1Header(app1Length);
// write the exif data // write the exif data
@ -634,7 +633,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
bytesToWrite = remaining > MaxBytesWithExifId ? MaxBytesWithExifId : remaining; bytesToWrite = remaining > MaxBytesWithExifId ? MaxBytesWithExifId : remaining;
app1Length = bytesToWrite + 2 + 6; app1Length = bytesToWrite + 2 + 6;
// write the app1 header
this.WriteApp1Header(app1Length); this.WriteApp1Header(app1Length);
// write Exif00 marker // write Exif00 marker
@ -671,7 +669,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
/// </exception> /// </exception>
private void WriteIccProfile(IccProfile iccProfile) private void WriteIccProfile(IccProfile iccProfile)
{ {
// Just in-case someone set the value to null by accident.
if (iccProfile == null) if (iccProfile == null)
{ {
return; return;

1
src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs

@ -79,7 +79,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
if (this.ReadString(4) == "Exif") if (this.ReadString(4) == "Exif")
{ {
// two zeros are expected to follow the Exif Id code
if (this.ReadUInt16() != 0) if (this.ReadUInt16() != 0)
{ {
return values; return values;

Loading…
Cancel
Save