Skip to content

Commit

Permalink
wasm: remove unused public interfaces (envoyproxy#36941)
Browse files Browse the repository at this point in the history
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 <kuat@google.com>
  • Loading branch information
kyessenov authored Nov 1, 2024
1 parent 841d78c commit 12e9d3b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source/extensions/common/wasm/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<WasmConfig>(config)) {}
local_info_(local_info), wasm_config_(std::make_unique<WasmConfig>(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:
Expand All @@ -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_;
};

Expand Down

0 comments on commit 12e9d3b

Please sign in to comment.