diff --git a/QRCoder/QRCodeGenerator.cs b/QRCoder/QRCodeGenerator.cs index 9bb9f17d..36bc74d0 100644 --- a/QRCoder/QRCodeGenerator.cs +++ b/QRCoder/QRCodeGenerator.cs @@ -500,30 +500,6 @@ private static byte[] CalculateECCWords(BitArray bitArray, int offset, int count return ret; } - /// - /// Converts the coefficients of a polynomial from integer values to their corresponding alpha exponent notation - /// based on a Galois field mapping. This is typically used in error correction calculations where - /// operations are performed on exponents rather than coefficients directly. - /// - private static Polynom ConvertToAlphaNotation(Polynom poly) - { - var newPoly = new Polynom(poly.Count); - - for (var i = 0; i < poly.Count; i++) - { - // Convert each coefficient to its corresponding alpha exponent unless it's zero. - // Coefficients that are zero remain zero because log(0) is undefined. - newPoly.Add( - new PolynomItem( - (poly[i].Coefficient != 0 - ? GetAlphaExpFromIntVal(poly[i].Coefficient) - : 0), - poly[i].Exponent)); // The exponent remains unchanged. - } - - return newPoly; - } - /// /// Converts all polynomial item coefficients from their alpha exponent notation to decimal representation in place. /// This conversion facilitates operations that require polynomial coefficients in their integer forms.