From 8efab048daf88cafe34870b066d9fad244b6b9ce Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Mon, 27 Nov 2023 16:18:34 -0800 Subject: [PATCH] remove unused function --- bin/mqtt5_canary/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/bin/mqtt5_canary/main.cpp b/bin/mqtt5_canary/main.cpp index 2001ecfb6..f1ebeb97b 100644 --- a/bin/mqtt5_canary/main.cpp +++ b/bin/mqtt5_canary/main.cpp @@ -411,21 +411,6 @@ static int s_AwsMqtt5CanaryOperationStop(struct AwsMqtt5CanaryTestClient *testCl return AWS_OP_ERR; } -OnSubscribeCompletionHandler subscribe_completion = [](int errorcode, std::shared_ptr) { - if (errorcode != 0) - { - ++g_statistic.subscribe_failed; - fprintf( - stderr, - "%ju: Subscribe failed with errorcode: %d, %s\n", - std::time(0), - errorcode, - aws_error_str(errorcode)); - return; - } - ++g_statistic.subscribe_succeed; -}; - static int s_AwsMqtt5CanaryOperationSubscribe(struct AwsMqtt5CanaryTestClient *testClient, Allocator *allocator) { if (!testClient->isConnected)