[Chore] Run solution code cleanup (#20584)

This commit is contained in:
Andrey Nekrasov
2022-09-16 11:54:58 +03:00
committed by GitHub
parent 09f4dead7f
commit ca3c758046
133 changed files with 108 additions and 359 deletions

View File

@@ -85,10 +85,10 @@ namespace ImageResizer.Models
{
BitmapMetadata originalMetadata = (BitmapMetadata)originalFrame.Metadata;
#if DEBUG
#if DEBUG
Debug.WriteLine($"### Processing metadata of file {_file}");
originalMetadata.PrintsAllMetadataToDebugOutput();
#endif
#endif
var metadata = GetValidMetadata(originalMetadata, transformedBitmap, containerFormat);

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
using System;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;

View File

@@ -10,7 +10,6 @@ using System.Runtime.InteropServices;
namespace ImageResizer.Utilities
{
// Win32 functions required for temporary workaround for issue #1273
[System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1307:Accessible fields should begin with upper-case letter", Justification = "Naming used in Win32 dll")]
internal class NativeMethods
{
[DllImport("user32.dll")]

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
using System.Collections.Generic;
using ImageResizer.ViewModels;
namespace ImageResizer.Views
{

View File

@@ -34,7 +34,7 @@ namespace ImageResizer.Views
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (Visibility)value == Visibility.Visible;
return (Visibility)value == Visibility.Visible;
}
}
}