Skip to content

Commit

Permalink
Remove obosolete Dependency#to_human_requirement (crystal-lang#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Apr 17, 2020
1 parent ca64dbb commit 3ef7049
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/dependency.cr
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,6 @@ module Shards
end
end

def to_human_requirement
if version?
version
elsif branch
"branch #{branch}"
elsif tag
"tag #{tag}"
elsif commit
"commit #{commit}"
else
"*"
end
end

def to_s(io)
io << name << " (" << requirement << ")"
end
Expand Down

0 comments on commit 3ef7049

Please sign in to comment.