From 42588ce4d1ba5c3d6a0fca55e34c85e6a85f3c71 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Tue, 3 Dec 2024 15:57:25 -0600 Subject: [PATCH] Remove unused neg_polynomialcoeff function --- .../eip7594/polynomial-commitments-sampling.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/specs/_features/eip7594/polynomial-commitments-sampling.md b/specs/_features/eip7594/polynomial-commitments-sampling.md index 36f208bbf4..f3844756cb 100644 --- a/specs/_features/eip7594/polynomial-commitments-sampling.md +++ b/specs/_features/eip7594/polynomial-commitments-sampling.md @@ -24,7 +24,6 @@ - [Polynomials in coefficient form](#polynomials-in-coefficient-form) - [`polynomial_eval_to_coeff`](#polynomial_eval_to_coeff) - [`add_polynomialcoeff`](#add_polynomialcoeff) - - [`neg_polynomialcoeff`](#neg_polynomialcoeff) - [`multiply_polynomialcoeff`](#multiply_polynomialcoeff) - [`divide_polynomialcoeff`](#divide_polynomialcoeff) - [`interpolate_polynomialcoeff`](#interpolate_polynomialcoeff) @@ -252,16 +251,6 @@ def add_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> PolynomialCoe return PolynomialCoeff([a[i] + (b[i] if i < length_b else BLSFieldElement(0)) for i in range(length_a)]) ``` -#### `neg_polynomialcoeff` - -```python -def neg_polynomialcoeff(a: PolynomialCoeff) -> PolynomialCoeff: - """ - Negative of coefficient form polynomial ``a``. - """ - return PolynomialCoeff([-x for x in a]) -``` - #### `multiply_polynomialcoeff` ```python