From 086b5697419dcf7f0d6278b973e8f807bbd82046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Mon, 16 Oct 2023 11:45:11 +0200 Subject: [PATCH] Drop unused @_plugin_id_configured from all own-able plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This variable is unused since b32781d0f03e7984f3b4eeec63f7310fa340b562. Signed-off-by: Šimon Lukašík --- lib/fluent/plugin/owned_by_mixin.rb | 1 - test/plugin/test_owned_by.rb | 1 - test/plugin/test_storage.rb | 1 - 3 files changed, 3 deletions(-) diff --git a/lib/fluent/plugin/owned_by_mixin.rb b/lib/fluent/plugin/owned_by_mixin.rb index ce932db202..eebc2b8dde 100644 --- a/lib/fluent/plugin/owned_by_mixin.rb +++ b/lib/fluent/plugin/owned_by_mixin.rb @@ -21,7 +21,6 @@ def owner=(plugin) @_owner = plugin @_plugin_id = plugin.plugin_id - @_plugin_id_configured = plugin.plugin_id_configured? @log = plugin.log end diff --git a/test/plugin/test_owned_by.rb b/test/plugin/test_owned_by.rb index 50bdd323d2..e898638371 100644 --- a/test/plugin/test_owned_by.rb +++ b/test/plugin/test_owned_by.rb @@ -26,7 +26,6 @@ class OwnedByMixinTest < Test::Unit::TestCase assert_equal parent.object_id, child.owner.object_id - assert child.instance_eval{ @_plugin_id_configured } assert_equal 'my_parent_id', child.instance_eval{ @_plugin_id } assert_equal Fluent::Log::LEVEL_TRACE, child.log.level diff --git a/test/plugin/test_storage.rb b/test/plugin/test_storage.rb index 430ed21032..321de2cfbc 100644 --- a/test/plugin/test_storage.rb +++ b/test/plugin/test_storage.rb @@ -68,7 +68,6 @@ class StorageTest < Test::Unit::TestCase assert_equal 'mytest', s.owner.system_config.process_name assert_equal '1', s.instance_eval{ @_plugin_id } - assert_equal true, s.instance_eval{ @_plugin_id_configured } end test 'does NOT have features for high-performance/high-consistent storages' do