group_impl.h: remove unused secp256k1_ge_set_infinity function

Also remove `secp256k1_fe_verify` from field_*_.impl.h when VERIFY is not defined
This commit is contained in:
Andrew Poelstra 2016-11-26 22:50:40 +00:00
parent a724d7296d
commit 03ff8c2d0a
3 changed files with 0 additions and 14 deletions

View file

@ -38,10 +38,6 @@ static void secp256k1_fe_verify(const secp256k1_fe *a) {
} }
VERIFY_CHECK(r == 1); VERIFY_CHECK(r == 1);
} }
#else
static void secp256k1_fe_verify(const secp256k1_fe *a) {
(void)a;
}
#endif #endif
static void secp256k1_fe_normalize(secp256k1_fe *r) { static void secp256k1_fe_normalize(secp256k1_fe *r) {

View file

@ -49,10 +49,6 @@ static void secp256k1_fe_verify(const secp256k1_fe *a) {
} }
VERIFY_CHECK(r == 1); VERIFY_CHECK(r == 1);
} }
#else
static void secp256k1_fe_verify(const secp256k1_fe *a) {
(void)a;
}
#endif #endif
static void secp256k1_fe_normalize(secp256k1_fe *r) { static void secp256k1_fe_normalize(secp256k1_fe *r) {

View file

@ -200,12 +200,6 @@ static void secp256k1_gej_set_infinity(secp256k1_gej *r) {
secp256k1_fe_clear(&r->z); secp256k1_fe_clear(&r->z);
} }
static void secp256k1_ge_set_infinity(secp256k1_ge *r) {
r->infinity = 1;
secp256k1_fe_clear(&r->x);
secp256k1_fe_clear(&r->y);
}
static void secp256k1_gej_clear(secp256k1_gej *r) { static void secp256k1_gej_clear(secp256k1_gej *r) {
r->infinity = 0; r->infinity = 0;
secp256k1_fe_clear(&r->x); secp256k1_fe_clear(&r->x);