Skip to content

Commit

Permalink
Remove deadcode from lib/spoom/poset.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
shopify-codedb[bot] committed Jun 21, 2024
1 parent cd541bc commit 041243a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/spoom/poset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ def direct_edge?(from, to)
self[from].parents.include?(to)
end

# Show the POSet as a DOT graph using xdot (used for debugging)
sig { params(direct: T::Boolean, transitive: T::Boolean).void }
def show_dot(direct: true, transitive: true)
Open3.popen3("xdot -") do |stdin, _stdout, _stderr, _thread|
stdin.write(to_dot(direct: direct, transitive: transitive))
stdin.close
end
end

# Return the POSet as a DOT graph
sig { params(direct: T::Boolean, transitive: T::Boolean).returns(String) }
def to_dot(direct: true, transitive: true)
Expand Down

0 comments on commit 041243a

Please sign in to comment.