[Pkg-gnupg-commit] [gnupg2] 27/118: g10: Drop unused argument.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 15 18:25:01 UTC 2016


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

dkg pushed a commit to branch encoding-and-speling
in repository gnupg2.

commit 70df5a8fd781d8774d835384ca28c4d8518bb9d0
Author: Neal H. Walfield <neal at g10code.com>
Date:   Wed Aug 31 10:58:18 2016 +0200

    g10: Drop unused argument.
    
    * g10/tofu.c (begin_transaction): Remove unused option only_batch.
    
    --
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
 g10/tofu.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/g10/tofu.c b/g10/tofu.c
index 88833cd..62c6efc 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -163,7 +163,7 @@ tofu_policy_to_trust_level (enum tofu_policy policy)
 

 /* Start a transaction on DB.  */
 static gpg_error_t
-begin_transaction (ctrl_t ctrl, int only_batch)
+begin_transaction (ctrl_t ctrl)
 {
   tofu_dbs_t dbs = ctrl->tofu.dbs;
   int rc;
@@ -219,9 +219,6 @@ begin_transaction (ctrl_t ctrl, int only_batch)
       dbs->batch_update_started = gnupg_get_time ();
     }
 
-  if (only_batch)
-    return 0;
-
   log_assert(dbs->in_transaction >= 0);
   dbs->in_transaction ++;
 
@@ -2231,7 +2228,7 @@ tofu_register (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
 
   /* We do a query and then an insert.  Make sure they are atomic
      by wrapping them in a transaction.  */
-  rc = begin_transaction (ctrl, 0);
+  rc = begin_transaction (ctrl);
   if (rc)
     return rc;
 
@@ -2479,7 +2476,7 @@ tofu_get_validity (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
 
   fingerprint = hexfingerprint (pk, NULL, 0);
 
-  begin_transaction (ctrl, 0);
+  begin_transaction (ctrl);
 
   for (user_id = user_id_list; user_id; user_id = user_id->next, bindings ++)
     {

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



More information about the Pkg-gnupg-commit mailing list