Skip to content

Commit

Permalink
Drop unused @_plugin_id_configured from all own-able plugins (#4320)
Browse files Browse the repository at this point in the history
This variable is unused since b32781d.

Signed-off-by: Šimon Lukašík <isimluk@fedoraproject.org>
  • Loading branch information
isimluk committed Dec 19, 2023
1 parent 95438b2 commit d086b29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/fluent/plugin/owned_by_mixin.rb
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/plugin/test_owned_by.rb
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/plugin/test_storage.rb
Expand Up @@ -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
Expand Down

0 comments on commit d086b29

Please sign in to comment.