From 5a018f86508e3963965c353caf283820b6a4c9c0 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Wed, 13 Dec 2017 06:16:02 +0000 Subject: [PATCH] python: remove package_available? logic It was added in https://github.com/Homebrew/legacy-homebrew/pull/37345 for a use case discussed in https://github.com/Homebrew/legacy-homebrew/pull/37340 that never seems to have actually emerged. I can find no reference of it ever having been used, despite it existing for 2+ years here. --- Library/Homebrew/language/python.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 49e3d1a46d..cdf13a4c1f 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -71,10 +71,6 @@ module Language ] end - def self.package_available?(python, module_name) - quiet_system python, "-c", "import #{module_name}" - end - # Mixin module for {Formula} adding virtualenv support features. module Virtualenv def self.included(base)