compat/fails_with_llvm: cleanup style.

This commit is contained in:
Mike McQuaid 2016-07-16 22:15:04 +01:00
parent 369fc93479
commit bf13eb9b59

View File

@ -1,11 +1,9 @@
class Formula
def fails_with_llvm(_msg = nil, _data = nil)
opoo "Calling fails_with_llvm in the install method is deprecated"
puts "Use the fails_with DSL instead"
odeprecated "Formula#fails_with_llvm in install"
end
def self.fails_with_llvm(msg = nil, data = {})
data = msg if Hash === msg
fails_with(:llvm) { build(data.delete(:build).to_i) }
def self.fails_with_llvm(_msg = nil, _data = {})
odeprecated "Formula.fails_with_llvm"
end
end