From 05aabf97882be003a69f7d9e47012c3dd0338a7b Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 18 Jul 2020 00:37:15 +0700 Subject: Remove unused code --- crypto/src/asn1/gm/GMNamedCurves.cs | 1 - crypto/src/crypto/ec/CustomNamedCurves.cs | 5 ----- crypto/src/util/encoders/Hex.cs | 1 - 3 files changed, 7 deletions(-) (limited to 'crypto/src') diff --git a/crypto/src/asn1/gm/GMNamedCurves.cs b/crypto/src/asn1/gm/GMNamedCurves.cs index 97485e258..866733cc6 100644 --- a/crypto/src/asn1/gm/GMNamedCurves.cs +++ b/crypto/src/asn1/gm/GMNamedCurves.cs @@ -4,7 +4,6 @@ using System.Collections; using Org.BouncyCastle.Asn1.X9; using Org.BouncyCastle.Math; using Org.BouncyCastle.Math.EC; -using Org.BouncyCastle.Math.EC.Endo; using Org.BouncyCastle.Math.EC.Multiplier; using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.Collections; diff --git a/crypto/src/crypto/ec/CustomNamedCurves.cs b/crypto/src/crypto/ec/CustomNamedCurves.cs index a508a4252..0eee66a33 100644 --- a/crypto/src/crypto/ec/CustomNamedCurves.cs +++ b/crypto/src/crypto/ec/CustomNamedCurves.cs @@ -41,11 +41,6 @@ namespace Org.BouncyCastle.Crypto.EC return c.Configure().SetEndomorphism(new GlvTypeBEndomorphism(c, p)).Create(); } - private static BigInteger FromHex(string hex) - { - return new BigInteger(1, Hex.DecodeStrict(hex)); - } - /* * curve25519 */ diff --git a/crypto/src/util/encoders/Hex.cs b/crypto/src/util/encoders/Hex.cs index dc4871352..0b2a48995 100644 --- a/crypto/src/util/encoders/Hex.cs +++ b/crypto/src/util/encoders/Hex.cs @@ -1,6 +1,5 @@ using System; using System.IO; -using System.Text; namespace Org.BouncyCastle.Utilities.Encoders { -- cgit 1.4.1