diff options
| author | L. E. Segovia | 2017-11-28 23:55:05 +0000 | 
|---|---|---|
| committer | L. E. Segovia | 2017-11-28 23:55:05 +0000 | 
| commit | 657d4eaee9eccecea6052c5759ea68e31e28693e (patch) | |
| tree | 417db0e6991055338f67edbfc632bcbb9789eabf /Library/Homebrew/cask/lib/hbc | |
| parent | 63961ac4655851b6ec0141fc4bf8b3f97240bc91 (diff) | |
| download | brew-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.rb | 10 | 
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  | 
