From d91132fbeac3768165318884d37ef6ed64732630 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Mon, 25 Mar 2024 00:47:13 +0100 Subject: [PATCH] Removed .net 6 only code --- StableDiffusion.NET/Helper/Images/Image.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/StableDiffusion.NET/Helper/Images/Image.cs b/StableDiffusion.NET/Helper/Images/Image.cs index f0e1db4..3dbea23 100644 --- a/StableDiffusion.NET/Helper/Images/Image.cs +++ b/StableDiffusion.NET/Helper/Images/Image.cs @@ -14,7 +14,7 @@ public sealed class Image : IImage #region Properties & Fields private readonly byte[] _buffer; - + private readonly int _x; private readonly int _y; private readonly int _stride; @@ -216,13 +216,8 @@ public sealed class Image : IImage /// public int Length => _length; -#if NET7_0_OR_GREATER /// public int SizeInBytes => Length * TColor.ColorFormat.BytesPerPixel; -#else - /// - public int SizeInBytes => Length * default(TColor).Net6ColorFormat.BytesPerPixel; -#endif #endregion @@ -359,13 +354,8 @@ public sealed class Image : IImage /// public int Length => _length; -#if NET7_0_OR_GREATER /// public int SizeInBytes => Length * TColor.ColorFormat.BytesPerPixel; -#else - /// - public int SizeInBytes => Length * default(TColor).Net6ColorFormat.BytesPerPixel; -#endif #endregion