From 7d606252c9ff0774e755f4bb18a72a90f1ef95c1 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 21 Feb 2024 18:41:20 +0000 Subject: [PATCH] rm unneeded method --- math/src/gpu/icicle/bls12_377.rs | 4 ---- math/src/gpu/icicle/bls12_381.rs | 4 ---- math/src/gpu/icicle/bn254.rs | 4 ---- 3 files changed, 12 deletions(-) diff --git a/math/src/gpu/icicle/bls12_377.rs b/math/src/gpu/icicle/bls12_377.rs index 5741fff12..2381e11be 100644 --- a/math/src/gpu/icicle/bls12_377.rs +++ b/math/src/gpu/icicle/bls12_377.rs @@ -27,10 +27,6 @@ impl BLS12377FieldElement { fn from_icicle(icicle: &curve::BaseField) -> Result { Self::from_bytes_le(&icicle.to_bytes_le()) } - - fn from_icicle_scalar(icicle: &curve::ScalarField) -> Result { - Self::from_bytes_le(&icicle.to_bytes_le()) - } } impl ShortWeierstrassProjectivePoint { diff --git a/math/src/gpu/icicle/bls12_381.rs b/math/src/gpu/icicle/bls12_381.rs index 9f3031eaa..bf68f2304 100644 --- a/math/src/gpu/icicle/bls12_381.rs +++ b/math/src/gpu/icicle/bls12_381.rs @@ -27,10 +27,6 @@ impl BLS12381FieldElement { fn from_icicle(icicle: &curve::BaseField) -> Result { Self::from_bytes_le(&icicle.to_bytes_le()) } - - fn from_icicle_scalar(icicle: &curve::ScalarField) -> Result { - Self::from_bytes_le(&icicle.to_bytes_le()) - } } impl ShortWeierstrassProjectivePoint { diff --git a/math/src/gpu/icicle/bn254.rs b/math/src/gpu/icicle/bn254.rs index c21c1a48a..daf91a61f 100644 --- a/math/src/gpu/icicle/bn254.rs +++ b/math/src/gpu/icicle/bn254.rs @@ -27,10 +27,6 @@ impl BN254FieldElement { fn from_icicle(icicle: &curve::BaseField) -> Result { Self::from_bytes_le(&icicle.to_bytes_le()) } - - fn from_icicle_scalar(icicle: &curve::ScalarField) -> Result { - Self::from_bytes_le(&icicle.to_bytes_le()) - } } impl ShortWeierstrassProjectivePoint {