aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc
diff options
context:
space:
mode:
authorL. E. Segovia2017-11-28 23:55:05 +0000
committerL. E. Segovia2017-11-28 23:55:05 +0000
commit657d4eaee9eccecea6052c5759ea68e31e28693e (patch)
tree417db0e6991055338f67edbfc632bcbb9789eabf /Library/Homebrew/cask/lib/hbc
parent63961ac4655851b6ec0141fc4bf8b3f97240bc91 (diff)
downloadbrew-657d4eaee9eccecea6052c5759ea68e31e28693e.tar.bz2
Remove unused backup and metadata logic
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc')
-rw-r--r--Library/Homebrew/cask/lib/hbc/installer.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb
index d56d10cc6..5879cd3e1 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