Skip to content

Commit

Permalink
Delete unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed May 7, 2024
1 parent d8edc00 commit a6bb4de
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions QRCoder/QRCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,30 +500,6 @@ private static byte[] CalculateECCWords(BitArray bitArray, int offset, int count
return ret;
}

/// <summary>
/// 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.
/// </summary>
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;
}

/// <summary>
/// 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.
Expand Down

0 comments on commit a6bb4de

Please sign in to comment.