You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2017/08/10 19:01:05 UTC

[2/2] kudu git commit: transaction: remove unused StatusTransactionCompletionCallback

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 <as...@cloudera.com>
Tested-by: Kudu Jenkins
Reviewed-by: David Ribeiro Alves <da...@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 <to...@apache.org>
Authored: Tue Aug 8 16:23:53 2017 -0700
Committer: Todd Lipcon <to...@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