From 12e9d3badc5692c0c2f5fdfe02f734a7f0a1f1e4 Mon Sep 17 00:00:00 2001 From: Kuat Date: Thu, 31 Oct 2024 17:34:31 -0700 Subject: [PATCH] wasm: remove unused public interfaces (#36941) Change-Id: I171afa0d240065d3f4872730fc71d70a46c03a93 Commit Message: remove listener info accessors in plugin config since they are dead code Risk Level: low Signed-off-by: Kuat Yessenov --- source/extensions/common/wasm/plugin.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/extensions/common/wasm/plugin.h b/source/extensions/common/wasm/plugin.h index a07edaeba51b..74bf96290af8 100644 --- a/source/extensions/common/wasm/plugin.h +++ b/source/extensions/common/wasm/plugin.h @@ -47,12 +47,9 @@ class Plugin : public proxy_wasm::PluginBase { config.vm_config().runtime(), THROW_OR_RETURN_VALUE(MessageUtil::anyToBytes(config.configuration()), std::string), config.fail_open(), createPluginKey(config, direction, listener_metadata)), - direction_(direction), local_info_(local_info), listener_metadata_(listener_metadata), - wasm_config_(std::make_unique(config)) {} + local_info_(local_info), wasm_config_(std::make_unique(config)) {} - envoy::config::core::v3::TrafficDirection& direction() { return direction_; } const LocalInfo::LocalInfo& localInfo() { return local_info_; } - const envoy::config::core::v3::Metadata* listenerMetadata() { return listener_metadata_; } WasmConfig& wasmConfig() { return *wasm_config_; } private: @@ -64,9 +61,7 @@ class Plugin : public proxy_wasm::PluginBase { } private: - envoy::config::core::v3::TrafficDirection direction_; const LocalInfo::LocalInfo& local_info_; - const envoy::config::core::v3::Metadata* listener_metadata_; WasmConfigPtr wasm_config_; };