Skip to content

Commit

Permalink
Remove useless method mixed_in_by_gem? from SymbolTableCompiler
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
  • Loading branch information
Morriar committed Feb 1, 2022
1 parent 4a397a8 commit bdf5d45
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/tapioca/compilers/symbol_table_compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,6 @@ def defined_in_gem?(constant, strict: true)
end
end

sig do
params(
mod: Module,
mixin_type: Trackers::Mixin::Type,
mixin_locations: T::Hash[Trackers::Mixin::Type, T::Hash[Module, T::Array[String]]]
).returns(T::Boolean)
end
def mixed_in_by_gem?(mod, mixin_type, mixin_locations)
locations = mixin_locations.dig(mixin_type, mod)
return true unless locations
locations.any? { |location| @gem.contains_path?(location) }
end

sig { params(constant: Module).returns(T::Array[String]) }
def get_file_candidates(constant)
wrapped_module = Pry::WrappedModule.new(constant)
Expand Down

0 comments on commit bdf5d45

Please sign in to comment.