Remove compat/download_strategy.

This commit is contained in:
Markus Reiter 2018-08-03 22:21:20 +02:00
parent 8158f045c4
commit e0e750e458
2 changed files with 0 additions and 17 deletions

View File

@ -1,7 +1,6 @@
require "compat/os/mac" require "compat/os/mac"
require "compat/dependable" require "compat/dependable"
require "compat/dependency_collector" require "compat/dependency_collector"
require "compat/download_strategy"
require "compat/fileutils" require "compat/fileutils"
require "compat/formula_support" require "compat/formula_support"
require "compat/hbc" require "compat/hbc"

View File

@ -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