Skip to content

Commit

Permalink
cleanup: remove unused function and resolve warning (#2350)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
  • Loading branch information
goaway authored and jpsim committed Nov 29, 2022
1 parent bf16292 commit c4c6080
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mobile/library/objective-c/EnvoyEngineImpl.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4c6080

Please sign in to comment.