Skip to content

Commit

Permalink
remove Cask::Config.explicit_s
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuraku committed Oct 30, 2024
1 parent 6469a24 commit 9069d42
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Library/Homebrew/cask/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,23 +188,6 @@ def merge(other)
self.class.new(explicit: other.explicit.merge(explicit))
end

# Get explicit configuration as a string.
#
# @api internal
#
# TODO: This is only used by `homebrew/bundle`, so move it there.
sig { returns(String) }
def explicit_s
explicit.map do |key, value|
# inverse of #env - converts :languages config key back to --language flag
if key == :languages
key = "language"
value = T.cast(explicit.fetch(:languages, []), T::Array[String]).join(",")
end
"#{key}: \"#{value.to_s.sub(/^#{Dir.home}/, "~")}\""
end.join(", ")
end

sig { params(options: T.untyped).returns(String) }
def to_json(*options)
{
Expand Down

0 comments on commit 9069d42

Please sign in to comment.