Hoist public method
This commit is contained in:
parent
7229d03133
commit
a69fc11459
@ -7,6 +7,15 @@ module Utils
|
|||||||
# @private
|
# @private
|
||||||
module Autoremove
|
module Autoremove
|
||||||
class << self
|
class << self
|
||||||
|
# An array of {Formula} without {Formula} or {Cask}
|
||||||
|
# dependents that weren't installed on request and without
|
||||||
|
# build dependencies for {Formula} installed from source.
|
||||||
|
# @private
|
||||||
|
def removable_formulae(formulae, casks)
|
||||||
|
unused_formulae = unused_formulae_with_no_formula_dependents(formulae)
|
||||||
|
unused_formulae - formulae_with_cask_dependents(casks)
|
||||||
|
end
|
||||||
|
|
||||||
# An array of all installed {Formula} with {Cask} dependents.
|
# An array of all installed {Formula} with {Cask} dependents.
|
||||||
# @private
|
# @private
|
||||||
def formulae_with_cask_dependents(casks)
|
def formulae_with_cask_dependents(casks)
|
||||||
@ -54,15 +63,6 @@ module Utils
|
|||||||
unused_formulae
|
unused_formulae
|
||||||
end
|
end
|
||||||
private_class_method :unused_formulae_with_no_formula_dependents
|
private_class_method :unused_formulae_with_no_formula_dependents
|
||||||
|
|
||||||
# An array of {Formula} without {Formula} or {Cask}
|
|
||||||
# dependents that weren't installed on request and without
|
|
||||||
# build dependencies for {Formula} installed from source.
|
|
||||||
# @private
|
|
||||||
def removable_formulae(formulae, casks)
|
|
||||||
unused_formulae = unused_formulae_with_no_formula_dependents(formulae)
|
|
||||||
unused_formulae - formulae_with_cask_dependents(casks)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user