diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8BandProbas.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8BandProbas.cs
index 86304d4bd8..90506efb81 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8BandProbas.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8BandProbas.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
///
@@ -22,13 +20,6 @@ internal class Vp8BandProbas
}
}
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8BandProbas(Vp8ProbaArray[] probabilities) => this.Probabilities = probabilities;
-
///
/// Gets the Probabilities.
///
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8CostArray.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8CostArray.cs
index 8268e1c02c..2c8d723d74 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8CostArray.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8CostArray.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
internal class Vp8CostArray
@@ -12,12 +10,5 @@ internal class Vp8CostArray
///
public Vp8CostArray() => this.Costs = new ushort[67 + 1];
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8CostArray(ushort[] costs) => this.Costs = costs;
-
public ushort[] Costs { get; }
}
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8Costs.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8Costs.cs
index 2441436fb2..eee22159e1 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8Costs.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8Costs.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
internal class Vp8Costs
@@ -19,13 +17,6 @@ internal class Vp8Costs
}
}
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8Costs(Vp8CostArray[] costs) => this.Costs = costs;
-
///
/// Gets the Costs.
///
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8ProbaArray.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8ProbaArray.cs
index a19f9742f3..3375275424 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8ProbaArray.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8ProbaArray.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
///
@@ -15,13 +13,6 @@ internal class Vp8ProbaArray
///
public Vp8ProbaArray() => this.Probabilities = new byte[WebpConstants.NumProbas];
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8ProbaArray(byte[] probabilities) => this.Probabilities = probabilities;
-
///
/// Gets the probabilities.
///
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8Residual.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8Residual.cs
index 6e0937d86b..68bf09f948 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8Residual.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8Residual.cs
@@ -7,7 +7,6 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
-using System.Text.Json.Serialization;
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
@@ -16,22 +15,6 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
///
internal class Vp8Residual
{
- public Vp8Residual()
- {
- }
-
- [JsonConstructor]
- public Vp8Residual(int first, int last, int coeffType, short[] coeffs, Vp8BandProbas[] prob, Vp8Stats[] stats, Vp8Costs[] costs)
- {
- this.First = first;
- this.Last = last;
- this.CoeffType = coeffType;
- this.Coeffs = coeffs;
- this.Prob = prob;
- this.Stats = stats;
- this.Costs = costs;
- }
-
public int First { get; set; }
public int Last { get; set; }
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8Stats.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8Stats.cs
index b6c05f2d4c..dda921a7c7 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8Stats.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8Stats.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
internal class Vp8Stats
@@ -19,12 +17,5 @@ internal class Vp8Stats
}
}
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8Stats(Vp8StatsArray[] stats) => this.Stats = stats;
-
public Vp8StatsArray[] Stats { get; }
}
diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8StatsArray.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8StatsArray.cs
index 864248dd8f..2fbba6996d 100644
--- a/src/ImageSharp/Formats/Webp/Lossy/Vp8StatsArray.cs
+++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8StatsArray.cs
@@ -1,8 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
-using System.Text.Json.Serialization;
-
namespace SixLabors.ImageSharp.Formats.Webp.Lossy;
internal class Vp8StatsArray
@@ -12,12 +10,5 @@ internal class Vp8StatsArray
///
public Vp8StatsArray() => this.Stats = new uint[WebpConstants.NumProbas];
- ///
- /// Initializes a new instance of the class.
- /// Only used for unit tests.
- ///
- [JsonConstructor]
- public Vp8StatsArray(uint[] stats) => this.Stats = stats;
-
public uint[] Stats { get; }
}