Skip to content

Commit a6bb4de

Browse files
committed
Delete unused method
1 parent d8edc00 commit a6bb4de

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

QRCoder/QRCodeGenerator.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -500,30 +500,6 @@ private static byte[] CalculateECCWords(BitArray bitArray, int offset, int count
500500
return ret;
501501
}
502502

503-
/// <summary>
504-
/// Converts the coefficients of a polynomial from integer values to their corresponding alpha exponent notation
505-
/// based on a Galois field mapping. This is typically used in error correction calculations where
506-
/// operations are performed on exponents rather than coefficients directly.
507-
/// </summary>
508-
private static Polynom ConvertToAlphaNotation(Polynom poly)
509-
{
510-
var newPoly = new Polynom(poly.Count);
511-
512-
for (var i = 0; i < poly.Count; i++)
513-
{
514-
// Convert each coefficient to its corresponding alpha exponent unless it's zero.
515-
// Coefficients that are zero remain zero because log(0) is undefined.
516-
newPoly.Add(
517-
new PolynomItem(
518-
(poly[i].Coefficient != 0
519-
? GetAlphaExpFromIntVal(poly[i].Coefficient)
520-
: 0),
521-
poly[i].Exponent)); // The exponent remains unchanged.
522-
}
523-
524-
return newPoly;
525-
}
526-
527503
/// <summary>
528504
/// Converts all polynomial item coefficients from their alpha exponent notation to decimal representation in place.
529505
/// This conversion facilitates operations that require polynomial coefficients in their integer forms.

0 commit comments

Comments
 (0)