From 95b0b198a5e584c5845557713fed4cbafe5e902f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 16 Jul 2018 20:18:29 +0200 Subject: [PATCH] Remove redundant `extract_to_dir`. --- Library/Homebrew/unpack_strategy.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index adbcc959dc..57ee57ab67 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -295,12 +295,6 @@ class GitUnpackStrategy < DirectoryUnpackStrategy def self.can_extract?(path:, magic_number:) super && (path/".git").directory? end - - private - - def extract_to_dir(unpack_dir, basename:) - FileUtils.cp_r path.children, unpack_dir, preserve: true - end end class SubversionUnpackStrategy < DirectoryUnpackStrategy