From 657d4eaee9eccecea6052c5759ea68e31e28693e Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Tue, 28 Nov 2017 23:55:05 +0000 Subject: [PATCH] Remove unused backup and metadata logic --- Library/Homebrew/cask/lib/hbc/installer.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb index d56d10cc6c..5879cd3e1c 100644 --- a/Library/Homebrew/cask/lib/hbc/installer.rb +++ b/Library/Homebrew/cask/lib/hbc/installer.rb @@ -31,7 +31,7 @@ module Hbc @upgrade = upgrade end - attr_predicate :binaries?, :force?, :skip_cask_deps?, :require_sha?, :upgrade?, :verbose?, :backed_up? + attr_predicate :binaries?, :force?, :skip_cask_deps?, :require_sha?, :upgrade?, :verbose? def self.print_caveats(cask) odebug "Printing caveats" @@ -447,10 +447,6 @@ module Hbc Pathname.new "#{@cask.metadata_versioned_path}.upgrading" end - def version_is_latest? - @cask.versions.include?("latest") - end - def gain_permissions_remove(path) Utils.gain_permissions_remove(path, command: @command) end @@ -471,10 +467,6 @@ module Hbc end end backup_metadata_path.rmdir_if_possible - @cask.metadata_master_container_path.rmdir_if_possible unless upgrade? - - # toplevel staged distribution - @cask.caskroom_path.rmdir_if_possible unless upgrade? end def purge_versioned_files