diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 0a68ffe92b..e64f16eada 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -111,29 +111,6 @@ module Hbc end alias == eql? - def dumpcask - odebug "Cask instance dumps in YAML:" - odebug "Cask instance toplevel:", to_yaml - [ - :name, - :homepage, - :url, - :appcast, - :version, - :sha256, - :artifacts, - :caveats, - :depends_on, - :conflicts_with, - :container, - :gpg, - :accessibility_access, - :auto_updates, - ].each do |method| - odebug "Cask instance method '#{method}':", send(method).to_yaml - end - end - def to_h { "name" => name, diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index f1a673faed..8e2da51d97 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -29,7 +29,6 @@ require "hbc/cli/zap" require "hbc/cli/abstract_internal_command" require "hbc/cli/internal_audit_modified_casks" -require "hbc/cli/internal_dump" require "hbc/cli/internal_help" require "hbc/cli/internal_stanza" diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb deleted file mode 100644 index 8a38ce1bed..0000000000 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb +++ /dev/null @@ -1,18 +0,0 @@ -module Hbc - class CLI - class InternalDump < AbstractInternalCommand - def initialize(*) - super - raise CaskUnspecifiedError if args.empty? - end - - def run - casks.each(&:dumpcask) - end - - def self.help - "dump the given Cask in YAML format" - end - end - end -end