From e0e750e458943751e06a66fdcce2bf475ecdca5b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 3 Aug 2018 22:21:20 +0200 Subject: [PATCH] Remove `compat/download_strategy`. --- Library/Homebrew/compat.rb | 1 - Library/Homebrew/compat/download_strategy.rb | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 Library/Homebrew/compat/download_strategy.rb diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index 163a666aa6..fbb74cb546 100644 --- a/Library/Homebrew/compat.rb +++ b/Library/Homebrew/compat.rb @@ -1,7 +1,6 @@ require "compat/os/mac" require "compat/dependable" require "compat/dependency_collector" -require "compat/download_strategy" require "compat/fileutils" require "compat/formula_support" require "compat/hbc" diff --git a/Library/Homebrew/compat/download_strategy.rb b/Library/Homebrew/compat/download_strategy.rb deleted file mode 100644 index 38d8464758..0000000000 --- a/Library/Homebrew/compat/download_strategy.rb +++ /dev/null @@ -1,16 +0,0 @@ -class AbstractFileDownloadStrategy - # TODO: This can be removed after a month because downloads - # will be outdated anyways at that point. - module Compat - def initialize(url, name, version, **meta) - super - - old_cached_location = @cache/"#{name}-#{version}#{ext}" - - return unless old_cached_location.exist? - FileUtils.mv old_cached_location, cached_location, force: true - end - end - - prepend Compat -end