kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [2/2] kudu git commit: transaction: remove unused StatusTransactionCompletionCallback
Date Thu, 10 Aug 2017 19:01:05 GMT
transaction: remove unused StatusTransactionCompletionCallback

This has been unused since 899bde406ef16e84b930c7232ba9b25e7fab44f6.

Change-Id: Ie3345b459637f170808e0d73c12a6754c6c2da31
Reviewed-on: http://gerrit.cloudera.org:8080/7632
Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
Tested-by: Kudu Jenkins
Reviewed-by: David Ribeiro Alves <davidralves@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/6de37829
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/6de37829
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/6de37829

Branch: refs/heads/master
Commit: 6de378296105a2310295231a79004b0e1a0bc0e4
Parents: 2a99bb3
Author: Todd Lipcon <todd@apache.org>
Authored: Tue Aug 8 16:23:53 2017 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Thu Aug 10 19:00:44 2017 +0000

----------------------------------------------------------------------
 src/kudu/tablet/transactions/transaction.h | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/6de37829/src/kudu/tablet/transactions/transaction.h
----------------------------------------------------------------------
diff --git a/src/kudu/tablet/transactions/transaction.h b/src/kudu/tablet/transactions/transaction.h
index 72db821..dd277cd 100644
--- a/src/kudu/tablet/transactions/transaction.h
+++ b/src/kudu/tablet/transactions/transaction.h
@@ -358,20 +358,6 @@ class LatchTransactionCompletionCallback : public TransactionCompletionCallback
   ResponsePB* response_;
 };
 
-// A transaction completion callback that takes a StatusCallback and simply
-// calls it with the transaction status when it completes.
-class StatusTransactionCompletionCallback : public TransactionCompletionCallback {
- public:
-  explicit StatusTransactionCompletionCallback(StatusCallback callback)
-      : callback_(std::move(callback)) {}
-
-  virtual void TransactionCompleted() OVERRIDE {
-    callback_.Run(status());
-  }
- private:
-  StatusCallback callback_;
-};
-
 }  // namespace tablet
 }  // namespace kudu
 


Mime
View raw message