Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead method nodes_strictnesses #525

Merged
merged 1 commit into from Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions lib/spoom/file_tree.rb
Expand Up @@ -54,14 +54,6 @@ def paths
nodes.map(&:path)
end

# Return a map of strictnesses for each node in the tree
sig { params(context: Context).returns(T::Hash[Node, T.nilable(String)]) }
def nodes_strictnesses(context)
v = CollectStrictnesses.new(context)
v.visit_tree(self)
v.strictnesses
end

# Return a map of typing scores for each node in the tree
sig { params(context: Context).returns(T::Hash[Node, Float]) }
def nodes_strictness_scores(context)
Expand Down