Skip to content

Commit

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

Signed-off-by: Šimon Lukašík <[email protected]>
  • Loading branch information
isimluk committed Oct 25, 2023
1 parent dd1a6e5 commit 086b569
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 086b569

Please sign in to comment.