From ef63c8c7684386b1b1fca4dfc7ceb5e70d5f108d Mon Sep 17 00:00:00 2001 From: hramadan Date: Wed, 19 Jul 2023 13:55:47 -0700 Subject: [PATCH] Remove old method new_relic_trace_controller_action is defined but never used --- .../agent/instrumentation/controller_instrumentation.rb | 2 -- test/multiverse/suites/sinatra_agent_disabled/shim_test.rb | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/new_relic/agent/instrumentation/controller_instrumentation.rb b/lib/new_relic/agent/instrumentation/controller_instrumentation.rb index 90e77bdc5d..069967d4bc 100644 --- a/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +++ b/lib/new_relic/agent/instrumentation/controller_instrumentation.rb @@ -41,8 +41,6 @@ def self.included(clazz) clazz.extend(ClassMethodsShim) end - def new_relic_trace_controller_action(*args); yield; end - def perform_action_with_newrelic_trace(*args); yield; end end diff --git a/test/multiverse/suites/sinatra_agent_disabled/shim_test.rb b/test/multiverse/suites/sinatra_agent_disabled/shim_test.rb index f68f1a3f10..73322bdfa1 100644 --- a/test/multiverse/suites/sinatra_agent_disabled/shim_test.rb +++ b/test/multiverse/suites/sinatra_agent_disabled/shim_test.rb @@ -23,7 +23,6 @@ def assert_shims_defined assert_respond_to MiddlewareApp, :newrelic_ignore_enduser, 'Class method newrelic_ignore_enduser not defined' # instance method shims - assert_includes(MiddlewareApp.instance_methods, :new_relic_trace_controller_action, 'Instance method new_relic_trace_controller_action not defined') assert_includes(MiddlewareApp.instance_methods, :perform_action_with_newrelic_trace, 'Instance method perform_action_with_newrelic_trace not defined') end