Skip to content

Commit

Permalink
Remove TracePoint registration which is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Sep 28, 2022
1 parent e0085f5 commit f488a9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions lib/tapioca.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ module Tapioca
class << self
extend T::Sig

sig { params(trace_name: Symbol, block: T.proc.params(arg0: TracePoint).void).void }
def register_trace(trace_name, &block)
@traces << TracePoint.trace(trace_name, &block)
end

sig { void }
def disable_traces
@traces.each(&:disable)
end

sig do
type_parameters(:Result)
.params(blk: T.proc.returns(T.type_parameter(:Result)))
Expand Down
2 changes: 0 additions & 2 deletions lib/tapioca/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ def gem(*gems)
option :payload, type: :boolean, desc: "Check shims against Sorbet's payload", default: true
option :workers, aliases: ["-w"], type: :numeric, desc: "Number of parallel workers (default: auto)"
def check_shims
Tapioca.disable_traces

command = Commands::CheckShims.new(
gem_rbi_dir: options[:gem_rbi_dir],
dsl_rbi_dir: options[:dsl_rbi_dir],
Expand Down

0 comments on commit f488a9c

Please sign in to comment.