From 77bf637ae5267b0abff81d1ccf53aeb1a9df40a5 Mon Sep 17 00:00:00 2001 From: Mike Schore Date: Fri, 10 Jun 2022 03:36:26 +0800 Subject: [PATCH] cleanup: remove unused function and resolve warning (#2350) Signed-off-by: Mike Schore Signed-off-by: JP Simard --- mobile/library/objective-c/EnvoyEngineImpl.m | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mobile/library/objective-c/EnvoyEngineImpl.m b/mobile/library/objective-c/EnvoyEngineImpl.m index ab11e6bb208b..3b583fb2a7a4 100644 --- a/mobile/library/objective-c/EnvoyEngineImpl.m +++ b/mobile/library/objective-c/EnvoyEngineImpl.m @@ -335,20 +335,6 @@ static void ios_http_filter_set_response_callbacks(envoy_http_filter_callbacks c } } -static void ios_http_filter_on_complete(envoy_stream_intel stream_intel, - envoy_final_stream_intel final_stream_intel, - const void *context) { - // This code block runs inside the Envoy event loop. Therefore, an explicit autoreleasepool block - // is necessary to act as a breaker for any Objective-C allocation that happens. - @autoreleasepool { - EnvoyHTTPFilter *filter = (__bridge EnvoyHTTPFilter *)context; - if (filter.onComplete == nil) { - return; - } - filter.onComplete(stream_intel, final_stream_intel); - } -} - static void ios_http_filter_on_cancel(envoy_stream_intel stream_intel, envoy_final_stream_intel final_stream_intel, const void *context) {