[Pkg-bitcoin-commits] [libsecp256k1] 12/27: group_impl.h: remove unused `secp256k1_ge_set_infinity` function

Jonas Smedegaard dr at jones.dk
Tue Jan 10 21:47:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libsecp256k1.

commit 03ff8c2d0a86cbea40ffe99a0d745571749f5d01
Author: Andrew Poelstra <apoelstra at wpsoftware.net>
Date:   Sat Nov 26 22:50:40 2016 +0000

    group_impl.h: remove unused `secp256k1_ge_set_infinity` function
    
    Also remove `secp256k1_fe_verify` from field_*_.impl.h when VERIFY is not defined
---
 src/field_10x26_impl.h | 4 ----
 src/field_5x52_impl.h  | 4 ----
 src/group_impl.h       | 6 ------
 3 files changed, 14 deletions(-)

diff --git a/src/field_10x26_impl.h b/src/field_10x26_impl.h
index 7b8c079..5fb092f 100644
--- a/src/field_10x26_impl.h
+++ b/src/field_10x26_impl.h
@@ -38,10 +38,6 @@ static void secp256k1_fe_verify(const secp256k1_fe *a) {
     }
     VERIFY_CHECK(r == 1);
 }
-#else
-static void secp256k1_fe_verify(const secp256k1_fe *a) {
-    (void)a;
-}
 #endif
 
 static void secp256k1_fe_normalize(secp256k1_fe *r) {
diff --git a/src/field_5x52_impl.h b/src/field_5x52_impl.h
index 7a99eb2..dd88f38 100644
--- a/src/field_5x52_impl.h
+++ b/src/field_5x52_impl.h
@@ -49,10 +49,6 @@ static void secp256k1_fe_verify(const secp256k1_fe *a) {
     }
     VERIFY_CHECK(r == 1);
 }
-#else
-static void secp256k1_fe_verify(const secp256k1_fe *a) {
-    (void)a;
-}
 #endif
 
 static void secp256k1_fe_normalize(secp256k1_fe *r) {
diff --git a/src/group_impl.h b/src/group_impl.h
index 2e192b6..7d72353 100644
--- a/src/group_impl.h
+++ b/src/group_impl.h
@@ -200,12 +200,6 @@ static void secp256k1_gej_set_infinity(secp256k1_gej *r) {
     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) {
     r->infinity = 0;
     secp256k1_fe_clear(&r->x);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git



More information about the Pkg-bitcoin-commits mailing list