Skip to content

Commit

Permalink
fix: remove dead code
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
  • Loading branch information
robertlaurin and fbogsany committed Jun 23, 2021
1 parent 8669db1 commit 2775552
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api/lib/opentelemetry/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
module OpenTelemetry
# Manages context on a per-fiber basis
class Context
KEY = :__opentelemetry_context__
EMPTY_ENTRIES = {}.freeze
STACK_KEY = :__opentelemetry_context_storage__
private_constant :KEY, :EMPTY_ENTRIES, :STACK_KEY
private_constant :EMPTY_ENTRIES, :STACK_KEY

DetachError = Class.new(OpenTelemetry::Error)

Expand All @@ -33,10 +32,6 @@ def current
stack.last || ROOT
end

# @api private
def current=(ctx)
Thread.current[KEY] = ctx
end

# Associates a Context with the caller's current Fiber. Every call to
# this operation should be paired with a corresponding call to detach.
Expand Down

0 comments on commit 2775552

Please sign in to comment.